# Number format... Help !!!!

#### nianchi111

##### Board Regular
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.

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

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
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
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))

#### nianchi111

##### Board Regular
Thank you so much for all the help !!!!

Replies
4
Views
62
Replies
1
Views
43
Replies
5
Views
51
Replies
6
Views
113
Replies
5
Views
55