filtering out text from numbers

  • Thread starter Thread starter simonsmith
  • Start date Start date
S

simonsmith

Hi,
I have a long column of data, some cells have numbers in the cells some
with text.
I want to get the numbers out. Any ideas on a formula for this?

Thanks

Simon
 
You can put this in a helper column and copy down

=IF(ISTEXT(A1),A1,"")

Vaya con Dios,
Chuck, CABGx3
 
Thanks,
tried that but some format or somethign is stopping that fro
differentiating text from the strings of 0001111000 that I want. Hav
found a long hand way to do it now

Cheers

Simo
 
It's easy to see why it did not work as desired......0001111000 is not a
number....it is actually a TEXT value just as much as a letter-character
string. If all of the values you want to delete start with a leading zero,
then this formula should help.........

=IF(Left(A1=0,"",A1)

Vaya con Dios,
Chuck, CABGx3
 
Hi,
I have a long column of data, some cells have numbers in the cells some
with text.
I want to get the numbers out. Any ideas on a formula for this?

Thanks

Simon

Do you need to retain the leading zero's?

Do you want the string returned as a text string (containing only numbers) or
as a number (would have no leading zero's)?

If you want to return a numeric value, then:

=IF(ISERR(1*A1),"",1*A1)

If you want to return a text string that contains only numbers (would include
leading zero's), then:

=IF(ISERR(1*A1),"",A1)


--ron
 

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

Back
Top