So here is my dilemma and it is driving me nuts.
Starting Cell possibilities:
"FM. Porter Jr. INACT "
"FM. Porter Jr. GTD "
"FM. Porter Jr. OUT "
Desired Output:
"M. Porter Jr."
There is a space before and after "INACT"/"GTD"/"OUT". Some have "Jr." or "III" or nothing after the name. My though was to remove all text after the 2nd space from the right but I can't figure out how to count the spaces from the right.
Current Formula:
=IFERROR((LEFT(MID(AI10, 2, LEN(AI10)),SEARCH(" ",MID(AI10, 2, LEN(AI10)),SEARCH(" ",MID(AI10, 2, LEN(AI10)))+1)-1)),"")
Works flawless on names without a suffix but if they have a suffix it cuts it off.
Starting Cell possibilities:
"FM. Porter Jr. INACT "
"FM. Porter Jr. GTD "
"FM. Porter Jr. OUT "
Desired Output:
"M. Porter Jr."
There is a space before and after "INACT"/"GTD"/"OUT". Some have "Jr." or "III" or nothing after the name. My though was to remove all text after the 2nd space from the right but I can't figure out how to count the spaces from the right.
Current Formula:
=IFERROR((LEFT(MID(AI10, 2, LEN(AI10)),SEARCH(" ",MID(AI10, 2, LEN(AI10)),SEARCH(" ",MID(AI10, 2, LEN(AI10)))+1)-1)),"")
Works flawless on names without a suffix but if they have a suffix it cuts it off.