Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
find a character location in a string starting from the right
I have to find the second instance from the right in strings with a variable
number of segments delimited by ".", where the final string is reliably 6 characters and the remaining segments are of variable length. Example string: mypage.My_Details.Yorkshire_and_Humber_region_page .Accountants_shown_ways_of_going_for_Olympic_gold_ .136277 From which I want to extract: Accountants_shown_ways_of_going_for_Olympic_gold_. 136277 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
find a character location in a string starting from the right
=MID(A1,FIND("~",SUBSTITUTE(A1,".","~",LEN(A1)-LEN(SUBSTITUTE(A1,".",""))-1))+1,255)
-- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "funtipoom" wrote in message ... I have to find the second instance from the right in strings with a variable number of segments delimited by ".", where the final string is reliably 6 characters and the remaining segments are of variable length. Example string: mypage.My_Details.Yorkshire_and_Humber_region_page .Accountants_shown_ways_of_going_for_Olympic_gold_ .136277 From which I want to extract: Accountants_shown_ways_of_going_for_Olympic_gold_. 136277 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
find a character location in a string starting from the right
Another way....
=REPLACE(A1,1,LOOKUP(LEN(A1)-7,FIND(".",A1,ROW(INDIRECT("1:"&LEN(A1))))),"") "Bob Phillips" wrote: =MID(A1,FIND("~",SUBSTITUTE(A1,".","~",LEN(A1)-LEN(SUBSTITUTE(A1,".",""))-1))+1,255) -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "funtipoom" wrote in message ... I have to find the second instance from the right in strings with a variable number of segments delimited by ".", where the final string is reliably 6 characters and the remaining segments are of variable length. Example string: mypage.My_Details.Yorkshire_and_Humber_region_page .Accountants_shown_ways_of_going_for_Olympic_gold_ .136277 From which I want to extract: Accountants_shown_ways_of_going_for_Olympic_gold_. 136277 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel-Match 1st text character in a string to a known character? | Excel Worksheet Functions | |||
Starting at cell with string in VBA | Excel Discussion (Misc queries) | |||
sort starting from a specific character (@ sign) for email addres | Excel Discussion (Misc queries) | |||
Find last occurance of character in text string | Excel Worksheet Functions | |||
Find nth instance of a character in a string | Excel Discussion (Misc queries) |