FormulaCraft

How to split first and last name in Excel and Google Sheets

Topic:Text manipulation
Excel & Google Sheets
=LEFT(A2,FIND(" ",A2)-1)

Verified example

Computed by a real spreadsheet engine on the sample data below.

Full NameFirst NameLast Name
Alice Smith
Bob Jones
Carol White
Dan Brown
Eve Black

=LEFT(A2,FIND(" ",A2)-1)Alice

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Click the cell where you want the first name (e.g. B2) and enter =LEFT(A2,FIND(" ",A2)-1).
  2. 2Click the cell for the last name (e.g. C2) and enter =MID(A2,FIND(" ",A2)+1,LEN(A2)).
  3. 3Copy both formulas down to cover all rows of your data.
  4. 4If names include a middle name or suffix, consider using TEXTSPLIT (Excel 365 / Sheets) for a more robust split.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What if some names have only one word?

Use IFERROR to catch the #VALUE! error: =IFERROR(LEFT(A2,FIND(" ",A2)-1),A2).

How do I handle "Last, First" format?

Find the comma: Last name = LEFT(A2,FIND(",",A2)-1); First name = TRIM(MID(A2,FIND(",",A2)+1,LEN(A2))).

More on Text manipulation

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: