Need Excel Formula to trim spaces before Numbers

raajnabriz

Board Regular
Joined
Jun 11, 2014
Messages
115
[FONT=&quot]Hi there,[/FONT]
[FONT=&quot]Please provide excel formula to trim spaces before numbers, i have received large data that contains spaces in each cell before the amount. I am using MS Office 2010.[/FONT]
[FONT=&quot]Thanks,[/FONT]
[FONT=&quot]Raaj.[/FONT]
 

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)
Yes, its not working, the problem at present is when i select two or more cells to check the total, it shows count only.
 
Last edited:
Upvote 0
[TABLE="width: 544"]
<colgroup><col><col span="2"><col></colgroup><tbody>[TR]
[TD]Cheque No.[/TD]
[TD]Cheque Amount [/TD]
[TD] Occurrence [/TD]
[TD]Dispatch Date[/TD]
[/TR]
[TR]
[TD]201811000951 [/TD]
[TD] 2,438.90 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201811000952 [/TD]
[TD] 962.01 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201811000953 [/TD]
[TD] 575.34 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201811000504 [/TD]
[TD] 10,740.92 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201811000505 [/TD]
[TD] 818.49 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201811000506 [/TD]
[TD] 4,553.04 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201812002160 [/TD]
[TD] 3,427.60 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201812002161 [/TD]
[TD] 2,898.56 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201812002162 [/TD]
[TD] 3,154.84 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201812002163 [/TD]
[TD] 4,290.43 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
[TR]
[TD]201812002164 [/TD]
[TD] 573.85 [/TD]
[TD="align: left"]recon closed jan-sep-18[/TD]
[TD]26/03/2019[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
If you copied the data from the Web, then maybe
=TRIM(SUBSTITUTE(A1,CHAR(160),""))
 
Upvote 0
From the data you've posted it doesn't look like you have problems with spaces.
In a blank cell put
=B2*1
What is returned?
 
Upvote 0
This formula works, but i cannot get total at the bottom only count, even though the sum option is selected.
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,109
Members
452,302
Latest member
TaMere

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