How do I pull just the numeric characters in a cell?

P

punter

Hi,

I have some cells that I want to pull just the numeric value so I can
do a Vlookup off the number. Example: 12345678DM. In the cell next
to it I would like to pull just the number while leaving the DM off. I
can't always promise that the amount of numbers will be 8 so I can't
just do a =left(A1,8) or something. Any ideas?

Thanks as always,

Eddie
 
I

ImpulseBlue

you can still do the left if you know that there will always be 2
letters at the end:
=LEFT(F5,LEN(F5)-2)

Hope that helps
 
O

oldchippy

punter said:
Hi,

I have some cells that I want to pull just the numeric value so I can
do a Vlookup off the number. Example: 12345678DM. In the cell next
to it I would like to pull just the number while leaving the DM off. I
can't always promise that the amount of numbers will be 8 so I can't
just do a =left(A1,8) or something. Any ideas?

Thanks as always,

Eddie
Hi Eddie,

Try something like this,

=LEFT(A1,FIND("DM",A1)-1)*1

oldchippy :)
 

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