Remove space in front of number in a cell?

B

Barcelona

I have a column of values I wish to sum. However, the data was imported from
a database and is entered as text - e.g $,100,000

I have removed the $ (=RIGHT) sign and the , (=SUBSTITUTE) but have now
found that there is a space in front of the number.

Is there a simple way to remove the space? I have used REPLACE but this does
not work. I have used =RIGHT but this removes the next number not the space.

Any suggestions?
 
S

Stefi

=VALUE(TRIM(SUBSTITUTE(RIGHT(A1,LEN(A1)-1),",","")))
returns the pure number.

Regards,
Stefi

„Barcelona†ezt írta:
 
A

Ashish Mathur

Hi,

I have not reied this but enter 1 in any cell. Then copy it and select the
range. Now go to Edit > paste Special > Multiply.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com
 
B

Barcelona

Mike - Thanks for suggestion. Unfortunately returns a VALUE error.

Stefi's suggestion does though work, so OK for now.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top