Extracting values need help ASAP!!! :o)

D

DestinySky

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??
 
R

Rick Rothstein \(MVP - VB\)

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
 
T

Toppers

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)
 
P

Peo Sjoblom

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)
 
Top