To extract the first name from a full name in “Last, First” format, you can use a formula that uses RIGHT, LEN and FIND functions.
From the table and formula (above), name represent full name in this format:
A comma and space separate the last name from the first name.
In the example, the active cell contains this formula:
How this formula works
At a high level, this formula uses RIGHT to extract characters from the right side of the name. To figure out the number of characters that need to be extracted to get the first name, the formula uses the FIND function to locate the position of “, ” in the name:
FIND(", ",B4) // position of comma
FIND returns the position of the comma and space as a number. This number is then subtracted from the total length of the name:
LEN(B4)-FIND(", ",B4) // length of first name + 1
The result is the length of the first name, plus one extra character, due to the comma. To get the true length, 1 is subtracted:
LEN(B4)-FIND(", ",B4)-1 // length of the first name
Because the name is in reverse order (LAST, FIRST), the RIGHT function can simply extract the length of the first name.
For the example, the name is “Chang, Amy”, the position of the comma is 6. So the inner formula simplifies to this:
10 – 6 – 1 = 3 // length of first name
RIGHT("Chang, Amy",3) // "Amy"