Extract the first name
Get everything before the first space in a full name.
The formula
Excel and Google Sheets
=LEFT(A2, FIND(" ", A2&" ")-1)How it works
A2&" "Adds a space at the end so names with no space still work.
FIND(" ", …)-1The position of the first space, minus one, is the length of the first name.
LEFT(A2, …)Takes that many characters from the start.
Example
| A: Full name | B: Result |
|---|---|
| Maria Lopez | Maria |
| Jean-Paul Martin | Jean-Paul |
| Cher | Cher |
Tips
- In Excel 365 you can also use =TEXTBEFORE(A2, " ", , , , A2).
- Run TRIM first if names have leading spaces.