ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Extracting data (https://www.excelbanter.com/excel-worksheet-functions/154033-extracting-data.html)

DestinySky

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

[email protected]

Extracting data
 
On Aug 13, 12:08 pm, DestinySky
wrote:
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.



Toppers

Extracting data
 
You have answers to your early (< 10 minutes ago) posting: be patient!

"DestinySky" wrote:

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


Elkar

Extracting data
 
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


"DestinySky" wrote:

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


David Biddulph[_2_]

Extracting data
 
=right(A1,4) as text
=--right(A1,4) if you want it as a number
--
David Biddulph

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





All times are GMT +1. The time now is 07:00 AM.

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