spaces after figures

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
215
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
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
18,285
Office Version
2013
Platform
Windows
Use

<b>Excel 2013/2016</b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style="text-align: right;color: #333333;;">100</td><td style="text-align: right;;">100</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style="text-align: right;color: #333333;;">300</td><td style="text-align: right;;">300</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style="text-align: right;color: #333333;;">210</td><td style="text-align: right;;">210</td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">B1</th><td style="text-align:left">=TRIM(<font color="Blue">A1</font>)</td></tr></tbody></table></td></tr></table><br />
 

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
215
Many thanks for your quick help but I don't know why in B1 its giving again 100x
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
4,175
maybe =CLEAN(TRIM(A1))
or
=SUBSTITUTE(CLEAN(TRIM(A1)),CHAR(160),"")
 
Last edited:

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
18,285
Office Version
2013
Platform
Windows
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
 

Forum statistics

Threads
1,085,047
Messages
5,381,373
Members
401,735
Latest member
ranjithr

Some videos you may like

This Week's Hot Topics

Top