Extracting values need help ASAP!!! :o)

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

Guest

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

You are going to kick yourself<g>....

=RIGHT(A1,4)

Rick
 
If the numbers are always at the end and 4 digits:

=RIGHT(A1,4)

or if always preceded by "VC"

=MID(A1,FIND("VC",A1)+2,255)
 
If it is always the last four numbers

=--RIGHT(A1,4)


if it is what's after VC regardless of how many numbers there are


=--MID(A1,FIND("VC",A1)+2,255)
 

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