Number format... Help !!!!

nianchi111

Board Regular
Joined
Aug 24, 2007
Messages
197
Office Version
  1. 365
Hi,

I have a report and in that the format of the number are coming in 2 different ways. Is there a way to correct this.

1. 340.35 = this is normal format, i don't have any issue with this.
2. 28.390,26 = If you could see there is "." instead of "," and "," instead of "." and also have to remove the space from the front and back.

Any kind of help will reduce my time in doing manually.

Thanks for your support in advance.

Some of the sample number mentioned below.

43.857,45
67.540,98
340.35
30.532,08
26.374,47
43.236,13
731.03
25170.46
16669.02
35
60.92


Thanks,
Vimal Vikraman.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try:

=IF(ISNUMBER(A1),A1,NUMBERVALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,".",""),",","")," ","")))

Not sure if your number strings had a half space after them, did when copied across to my PC.
 
Upvote 0
The file that you posted has a non-breaking space... ASCII 160... at the end. If that character is not really in your data, then you can use this formula...

=IF(ISNUMBER(SEARCH("*.*,*",A1)),0+SUBSTITUTE(SUBSTITUTE(A1,".",""),",","."),IF(A1="","",A1))

If it is in your data, then you can use this formula instead...

=IF(ISNUMBER(SEARCH("*.*,*",A1)),0+SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,CHAR(160),""),".",""),",","."),IF(A1="","",A1))
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

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