Number format... Help !!!!

nianchi111

Board Regular
Joined
Aug 24, 2007
Messages
195
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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

mrshl9898

Well-known Member
Joined
Feb 6, 2012
Messages
1,951
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.
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
37,866
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
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))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,487
Messages
5,831,972
Members
430,099
Latest member
rdhoy

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
Top