Shorten A Name

R

rocket0612

If I have a cell A1 with a name entered in the format 'Mr A B SURNAME',
how can I get it shortened to just the start and end in B1 so it will
just show 'Mr SURNAME'.

thanks
 
O

olasa

One option:
=LEFT(A1,FIND("
",A1)-1)&MID(A1,MAX((MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)="
")*(ROW(INDIRECT("1:"&LEN(A1))))),255)
Confirm the formula by holding down Ctrl and Shift, and then hit
Enter.

Hope it helped
Ola Sandström
 
Top