Extracting data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 000000VC3236 in a cell and I need only the last 4 numbers of 3236. How
can I extract that data? I have tried +SUM(MID(A1,3,FIND("VC",A1)-3)) . What
am I doing wrong??
 
I have 000000VC3236 in a cell and I need only the last 4 numbers of 3236. How
can I extract that data? I have tried +SUM(MID(A1,3,FIND("VC",A1)-3)) . What
am I doing wrong??

You're on the right track. I would use =MID(A1,FIND("VC",A1)+2,4)

..o.
 
Not sure why you're using the SUM function, but otherwise you were close.
Try this:

=MID(A1,FIND("VC",A1)+2,99)

HTH,
Elkar
 
=right(A1,4) as text
=--right(A1,4) if you want it as a number
 

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