ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Extracting values need help ASAP!!! :o) (https://www.excelbanter.com/excel-worksheet-functions/154032-extracting-values-need-help-asap-o.html)

DestinySky

Extracting values need help ASAP!!! :o)
 
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??

Rick Rothstein \(MVP - VB\)

Extracting values need help ASAP!!! :o)
 
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


Toppers

Extracting values need help ASAP!!! :o)
 
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)

"DestinySky" wrote:

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


Peo Sjoblom

Extracting values need help ASAP!!! :o)
 
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)


--
Regards,

Peo Sjoblom




"DestinySky" wrote in message
...
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??




DestinySky

Extracting values need help ASAP!!! :o)
 
Your right... I am kicking myself!!! :o) Thanks a million!!

"Rick Rothstein (MVP - VB)" wrote:

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




All times are GMT +1. The time now is 12:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com