J
John
How do I extract the last word in a character string of words and spaces?
I appreciate your help, -John
I appreciate your help, -John
....Jacob Skaria said:With your name in A1 try
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))
....Jacob Skaria said:With your name in A1 try
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))
=MID(TRIM(A1),FIND(CHAR(127),SUBSTITUTE(TRIM(A1)," ",CHAR(127),
LEN(TRIM(A1))-LEN(SUBSTITUTE(A1," ",""))))+1,32767)
=MID(TRIM(A1),FIND(CHAR(127),SUBSTITUTE(TRIM(A1)," ",CHAR(127),
LEN(TRIM(A1))-LEN(SUBSTITUTE(A1," ",""))))+1,32767)
....Rick Rothstein said:Just out of curiosity... any special reason for choosing CHAR(127) as
opposed to using one of the rarely used sub-32 characters codes; for
example, CHAR(1)?
....Rick Rothstein said:Just out of curiosity... any special reason for choosing CHAR(127) as
opposed to using one of the rarely used sub-32 characters codes; for
example, CHAR(1)?