converting euro style numbers to us style

erqazx

New Member
Joined
May 18, 2011
Messages
12
I'm trying to convert 1.000.222,33 numbering to 1,000,222.33

So far I have just used find+replace, by removing '.' first and then just converting ',' to '.' However when I come across thousands ending with a zero (eg 1.060) this system fails and will give me 160.000 (one hundred sixty) instead if 1,060 (thousand sixty). So I have to adjust all these manually in fairly large sheets. Does anyone know how to fix this? Or does someone perhaps have a macro for this (I can't write VBA myself)? Any help much appreciated. Thanks!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I think find and replace would still work. First replace "." with "!", the replace "," with "." then finally replace "!" with ","
 
Upvote 0
It should work, can you post a figure you would like me to test with? I did test with an ending zero and it kept it
 
Upvote 0
Can you give us an example of what you mean by this ?

if I replace the dot in 1.060 by '!', I get 1!06 instead of 1!060 (what I want)

So the last zero automatically disappears.. is this a setting I need to change? The last zero also disappears when I regularly type in a number
 
Upvote 0
change your numbers using the following formula (assuming your number is in cell A1)

=text(A1,"0.000")

Then perform the replace
 
Upvote 0
if I replace the dot in 1.060 by '!', I get 1!06 instead of 1!060 (what I want)

So the last zero automatically disappears.. is this a setting I need to change? The last zero also disappears when I regularly type in a number

What's happening is that 1.060 (one thousand and sixty) is being converted to 1.060 (one point zero six) before the replacement takes place.

Maybe try replacing , with ! first.
 
Upvote 0

Forum statistics

Threads
1,224,543
Messages
6,179,429
Members
452,914
Latest member
echoix

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