Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
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


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=526267

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Extracting using seperators

=RIGHT(A1,LEN(A1)-FIND("^^",
SUBSTITUTE(A1,"-","^^",LEN(A1)-LEN(SUBSTITUTE(A1,"-","")))))

(all one cell)

And it assumes that ^^ doesn't appear in your string.

Or

=RIGHT(A1,LEN(A1)-FIND(CHAR(1),
SUBSTITUTE(A1,"-",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,"-","")))))

(char(1) is not used very often in strings)

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

--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=526267


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Extracting using seperators

Assumning your format is always the same with the two hyphens,......

=MID(A1,FIND("-",A1,FIND("-",A1,1)+1)+1,99)

Vaya con Dios,
Chuck, CABGx3


"starguy" wrote in
message ...

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


--
starguy
------------------------------------------------------------------------
starguy's Profile:

http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=526267



  #4   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default Extracting using seperators


thank you both.
formulas by Dave are more helpful for as number of separators in my
data change and i want string at right side after last separator.

thank you both for replying.


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=526267

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 First Name Ruan New Users to Excel 12 February 15th 06 05:41 PM
Extracting data from Pivot gigi Excel Discussion (Misc queries) 6 November 23rd 05 05:25 PM
Extracting info from word and displaying in an excel spreadsheet Drew Excel Discussion (Misc queries) 0 March 7th 05 03:49 AM
Extracting Values on one list and not another B Schwarz Excel Discussion (Misc queries) 4 January 7th 05 01:48 PM


All times are GMT +1. The time now is 11:46 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"