spaces after figures

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
221
Hi,

I received 1 excel file contained values but having 2 or 3 spaces after figures, I think this is formatting issue, what formula can I apply to get figures only.

In the below example x means space

Current figures
100xx
300xxx
210x

Wanted
100
300
210
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Use


Excel 2013/2016
AB
1100100
2300300
3210210
Sheet1
Cell Formulas
RangeFormula
B1=TRIM(A1)
 
Upvote 0
maybe =CLEAN(TRIM(A1))
or
=SUBSTITUTE(CLEAN(TRIM(A1)),CHAR(160),"")
 
Last edited:
Upvote 0
You could also do this with a simple Find / Replace
Highlight the data >>Editing Tab>>Replace>>In the Find box Hold down the ALT Key and using the Number keypad type 0160>>Leave the Replace box blank>>Replace ALL
 
Upvote 0

Forum statistics

Threads
1,214,893
Messages
6,122,121
Members
449,066
Latest member
Andyg666

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