Reputation: 239
Ever since i added a multiple language option for my computer, Excel decided to turn all my decimals into commas. I need to turn them back into decimals again. How do i do this with least amount of work? If you know an EASY way to do this, emphasis on easy, please tell. When it is converted, i need a number, not text or anything else. I'm using Microsoft Office Professional Plus 2010.
I tried the approach where you make this formula in Excel
=SUBSTITUTE(A4;",";".")+0
Which should, i'm assuming, get cell A4, change comma into period and then by adding 0 convert to number. My original number is 17.6, now i'm getting 41807.
Upvotes: 9
Views: 68258
Reputation: 79
My best choice to use the below function which can help to convert the text to numbers also at the same time. Its very useful in cases where some systme reports are shared with different number formats
=NUMBERVALUE(SUBSTITUTE(SUBSTITUTE(E3,".",""),",","."))
Upvotes: 5
Reputation: 35853
There're two options for you.
1) change regional settings on your PC:
2) use Application.DecimalSeparator
in VBA code (e.g. in Workbook_Open
event):
Private Sub Workbook_Open()
Application.DecimalSeparator = "."
End Sub
Upvotes: 5