Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Unless most "right" or "left" functions in which one is looking to select the
"LAST" or the "FIRST" value within a string of characters within a call, I wish to select the "SECOND TO LAST" value within a string of characters within a call. IN other words, assume the string of characters of a cell ends with "Fname Lname". I wish to select "Fname" from the character string and place it in another column. Any ideas? Much appreciated. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),198),99))
"Eric_G" wrote: Unless most "right" or "left" functions in which one is looking to select the "LAST" or the "FIRST" value within a string of characters within a call, I wish to select the "SECOND TO LAST" value within a string of characters within a call. IN other words, assume the string of characters of a cell ends with "Fname Lname". I wish to select "Fname" from the character string and place it in another column. Any ideas? Much appreciated. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Very nice solution, Teethless Mama!
-- Regards Roger Govier Teethless mama wrote: =TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),198),99)) "Eric_G" wrote: Unless most "right" or "left" functions in which one is looking to select the "LAST" or the "FIRST" value within a string of characters within a call, I wish to select the "SECOND TO LAST" value within a string of characters within a call. IN other words, assume the string of characters of a cell ends with "Fname Lname". I wish to select "Fname" from the character string and place it in another column. Any ideas? Much appreciated. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Looks like overkill to me, the RIGHT seems superfluous as it seems fine to
just use =TRIM(LEFT(SUBSTITUTE(A1," ",REPT(" ",99)),99)) -- HTH Bob "Roger Govier" wrote in message ... Very nice solution, Teethless Mama! -- Regards Roger Govier Teethless mama wrote: =TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),198),99)) "Eric_G" wrote: Unless most "right" or "left" functions in which one is looking to select the "LAST" or the "FIRST" value within a string of characters within a call, I wish to select the "SECOND TO LAST" value within a string of characters within a call. IN other words, assume the string of characters of a cell ends with "Fname Lname". I wish to select "Fname" from the character string and place it in another column. Any ideas? Much appreciated. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Oops, my mistake, I missed the OPs request for Second to last :-)
-- HTH Bob "Roger Govier" wrote in message ... Very nice solution, Teethless Mama! -- Regards Roger Govier Teethless mama wrote: =TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),198),99)) "Eric_G" wrote: Unless most "right" or "left" functions in which one is looking to select the "LAST" or the "FIRST" value within a string of characters within a call, I wish to select the "SECOND TO LAST" value within a string of characters within a call. IN other words, assume the string of characters of a cell ends with "Fname Lname". I wish to select "Fname" from the character string and place it in another column. Any ideas? Much appreciated. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find & Replace: find part cell, replace whole cell | Excel Worksheet Functions | |||
find last cell in range with data, display cell address | Excel Worksheet Functions | |||
FIND / SEARCH text compare cell to string in 3rd cell | Excel Discussion (Misc queries) | |||
Find First Non blank cell than find column header and return that value | Excel Worksheet Functions | |||
Change the appearance cell where Find criteria is found in a cell | Excel Discussion (Misc queries) |