Number format... Help !!!!

nianchi111

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

Some videos you may like

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

mrshl9898

Well-known Member
Joined
Feb 6, 2012
Messages
1,414
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
36,307
Office Version
  1. 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))
 

Watch MrExcel Video

Forum statistics

Threads
1,108,954
Messages
5,525,880
Members
409,669
Latest member
JDCupps

This Week's Hot Topics

Top