Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
In B1: =RIGHT(A1,LEN(A1)-1-SEARCH(",",A1,1+SEARCH(",",A1,1+SEARCH(",",A1))))
In C1: =SUBSTITUTE(A1,", "&B1,"") In D1: =RIGHT(C1,LEN(C1)-1-SEARCH(",",C1,1+SEARCH(",",C1))) -- Regards, Dave "bob" wrote: I would like to set up a formula that references a string in another cell but truncates the beginning, middle, or end of it. The cell containing the data always has five names separated by four commas, as shown below Example: A1 = Contains the text string "Simmons, Bogut, Magloire, Ford, Redd" B1 = Want a formula that returns only the last two names in A1, "Ford, Redd" C1 = Want a formula that returns only the first three names in A1, "Simmons, Bogut, Magloire" D1 = Want a formula that returns only the third name in A1, "Magloire" Thank you for your help, Bob |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find first numeric value in text string | Excel Worksheet Functions | |||
Extracting integers from a text string. | Excel Worksheet Functions | |||
dynamic cell reference within a text string | Excel Worksheet Functions | |||
Extracting from a text string | Excel Worksheet Functions | |||
Formating a text string? | Excel Discussion (Misc queries) |