Home » excel » comma – Excel: Change "," to "."

comma – Excel: Change "," to "."

Posted by: admin March 9, 2020 Leave a comment

Questions:

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.

How to&Answers:

There’re two options for you.

1) change regional settings on your PC:

enter image description here

2) use Application.DecimalSeparator in VBA code (e.g. in Workbook_Open event):

Private Sub Workbook_Open()
    Application.DecimalSeparator = "."
End Sub

enter image description here

Answer:

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,”.”,””),”,”,”.”))