Values with spaces

Salamullah

Board Regular
Joined
Mar 28, 2011
Messages
221
I have a list of amount but it contained spaces before and after figures how can I get only numerical value.


like

100,000
78,900
23,000
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
for the first one length is 9
so you want value(mid(A1,2,8))

8 is 9-1
2 is a constant
so =value(mid(a1,2,len(A1)-1))
 
Upvote 0
Not sure why its giving #value! . My data is as follows its in text and I want only numeric value

[TABLE="width: 96"]
<tbody>[TR]
[TD]Total Cost
[/TD]
[/TR]
[TR]
[TD]1,539.53
[/TD]
[/TR]
[TR]
[TD]4,726.34
[/TD]
[/TR]
[TR]
[TD]8,119.27
[/TD]
[/TR]
[TR]
[TD]4,366.64
[/TD]
[/TR]
[TR]
[TD]100,421.84
[/TD]
[/TR]
[TR]
[TD]310.29
[/TD]
[/TR]
[TR]
[TD]16,595.38
[/TD]
[/TR]
[TR]
[TD]23,287.38
[/TD]
[/TR]
[TR]
[TD]48,513.19
[/TD]
[/TR]
[TR]
[TD]7,898.31
[/TD]
[/TR]
[TR]
[TD]81,649.00
[/TD]
[/TR]
[TR]
[TD]3,949.55
[/TD]
[/TR]
[TR]
[TD]11,637.55
[/TD]
[/TR]
[TR]
[TD]13,723.31
[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0
Give this a try... select the column, bring up the Text To Columns dialog box (Data tab, Data Tools panel) and click the Finish button as soon as the dialog box appears... you values should be real numbers now.
 
Upvote 0
Give this a try... select the column, change the cell formatting to General, then bring up the Text To Columns dialog box (Data tab, Data Tools panel) and click the Finish button as soon as the dialog box appears... you values should be real numbers now.
I accidentally left out the step I show in red above in my earlier message.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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