1. Extract First Name Before a Space (LEFT + FIND)
When cell A2 holds a full name like "Saurabh Garg", FIND(" ", A2) - 1 finds the exact number of characters before the space, and LEFT extracts the first name:
=LEFT(A2, FIND(" ", A2) - 1)
2. Extract Last Name After a Space (RIGHT + LEN + FIND)
Subtract the space position from the total length (LEN(A2)) and use RIGHT to return the last name:
=RIGHT(A2, LEN(A2) - FIND(" ", A2))
Worked Example: First & Last Name Extraction
| Cell A2 (Full Name) | First Name (LEFT + FIND) |
Last Name (RIGHT + LEN + FIND) |
|---|---|---|
| Saurabh Garg | Saurabh | Garg |
| Meera Nair | Meera | Nair |
3. Join Values With TEXTJOIN (Skip Empty Cells)
Unlike & or CONCAT, TEXTJOIN lets you specify a delimiter (such as ", ") and pass TRUE as its second argument to skip blank cells automatically:
=TEXTJOIN(", ", TRUE, B2:E2)
Tips & Error Prevention
- Clean extra spaces first: If imported names have leading or double spaces, wrap with TRIM first so
FIND(" ", ...)finds the right separator. - Single-word names without a space: If a cell has no space,
FIND(" ", A2)returns#VALUE!; wrap with IFERROR(..., A2) to keep the single word cleanly.