Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default 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??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default 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??

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default 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??



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting changing row values Hutchy Excel Discussion (Misc queries) 1 March 19th 07 09:30 AM
Extracting rows from a spreadsheet using values from another shee Alex 46 Excel Discussion (Misc queries) 1 January 31st 07 07:27 PM
Extracting values from a table Rob Cherry Excel Discussion (Misc queries) 2 April 2nd 06 11:21 PM
Extracting Values on one list and not another B Schwarz Excel Discussion (Misc queries) 4 January 7th 05 01:48 PM
Extracting numeric values from string RJF Excel Worksheet Functions 3 January 5th 05 10:48 PM


All times are GMT +1. The time now is 01:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"