Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Starguy
 
Posts: n/a
Default Extracting using seperators

how can i extract the right most characters of a text after a seperator
suppose i have "asdf-12df-654" in cell B5 and "df-5d7-df7854" in Cell B6 and
so on downwards. i want to extract the right most characters which are 654 in
cell B5 and df7854 in B6. how can i do this by using function (not VBE)

thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
paul
 
Posts: n/a
Default Extracting using seperators

if your strings are in a25 and b25 respectively
=RIGHT(SUBSTITUTE(A25,"-","&",2),LEN(SUBSTITUTE(A25,"-","&",2))-SEARCH("&",SUBSTITUTE(A25,"-","&",2),1))
same for the other one but replace a25 with b 25.This assumes there will
always be two dashes within the number and any number of other letters and
numbers...
The logic here is first i replace the second dash with a & then find out
where the & is in the string then i can count the characters to the right of
the & to use the right function.....
--
paul
remove nospam for email addy!



"Starguy" wrote:

how can i extract the right most characters of a text after a seperator
suppose i have "asdf-12df-654" in cell B5 and "df-5d7-df7854" in Cell B6 and
so on downwards. i want to extract the right most characters which are 654 in
cell B5 and df7854 in B6. how can i do this by using function (not VBE)

thanks

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 numbers from alphanumeric cells Mary Excel Worksheet Functions 6 February 22nd 07 12:04 PM
Extracting using seperators starguy Excel Discussion (Misc queries) 3 March 27th 06 05:56 AM
Extracting First Name Ruan New Users to Excel 12 February 15th 06 05:41 PM
Extracting information from records to another sheet automatically Max Excel Worksheet Functions 0 February 4th 06 05:27 PM
Extracting info from word and displaying in an excel spreadsheet Drew Excel Discussion (Misc queries) 0 March 7th 05 03:49 AM


All times are GMT +1. The time now is 05:23 PM.

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

About Us

"It's about Microsoft Excel"