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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Now in a same file Text is also appearing with space so vlookup is not picking value from text, but this time not 2 spaces but different in different cells in some 23 in some 29 spaces at the end of text, please help

Example

Sales
Cost of good sold
Gross Margin
 
Upvote 0
find space, replace with nothing
and look at trim formula

will look at it in detail in 3 hours time
 
Upvote 0
find space, replace with nothing
and look at trim formula

will look at it in detail in 3 hours time

have done how you said its removing all spaces instead of all extra spaces appearing and the end of the text.

before
Sales & Marketing Expenses

After
Sales&MarketingExpenses
 
Upvote 0
678 3 spaces befor 5 spaces after693
234no spaces249
999 none before 9 after1014
8888 before none after903
adding 15 to each one, even though there are
leading and trailing spaces, works fine

<colgroup><col span="13"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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