excel acting weird when replacing "," with "."

Joined
May 16, 2010
Messages
5
I have a dataset with with commas before the decimals. I need to change them to punctuations because SPSS apparently doesn't read numbers with comma in them. When I replace the comma for for instance 6,5 I get a huge number (something like 40355 or something). It doesn't make sense to me. I've tried different number settings for the cells without any luck.. I don't want to change every number manually... Any idea?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How are the cells formatted when presented as 6,5? Are they numbers or text? Are you using a European format? and wish to change to the US format? How do you have your decimal separator set globally?

Alan
 
Last edited:
Upvote 0
I think they were just "general" formatted. I don't know about the european and US format, and not sure with this global thing.. sorry I'm pretty green.... and european
 
Upvote 0
Go to Tools, Options, click on the International Tab. What is your decimal setting. How is your data set getting into Excel. Imported or data entry. I suspect that your international setting for decimals is set to ",". Change it to "." for this worksheet and see if that solves your issue.

Alan
 
Upvote 0
I agree with Alan that it seems to be because your Excel has European settings. I tried 6,5 in my North American formatted Excel and it won't recognize it at all. Once I change it 6.5 then it works fine.

As a last option, save your excel sheet (the active sheet) as a tab-deliniated text file, open it with Word and do a global replace of commas with periods.

AMAS
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top