What you will build

Split a two-part contact name for mail merge preparation. This lesson uses fictional sample data so you can reproduce each action.

Learning objective

Complete the steps using the dataset below, explain why the feature or formula is used, and recognize issues when inputs change.

Prepare the sample data

Paste this example as tab-separated values beginning at A1 on a new worksheet:

HANDS-ON PRACTICE

Practice in your own copy

Make your own Google Sheets copy with the same data, formulas, formatting, filter and frozen header. The original remains unchanged.

Make a Google Sheets copy (access required) ↗View original

Sign in to Google. If the original is not publicly shared, download the full workbook and import it into Google Sheets, or paste the example data into your own sheet.

Sample names in the result workbook before filling the formula.

Open the source practice workbook in Google Sheets ↗

Work through the example

Step 1: Confirm A1:A4 contains Full name, An Nguyen, Binh Tran, and Chi Le; each sample name has exactly two space-separated parts.

Step 2: Enter First in B1 and Last in C1. Select B2, enter =SPLIT(TRIM(A2)," "), then fill or copy the formula down through B4. Each formula spills the two name parts into column C on the same row.

Step 3: Temporarily change A2 to An Maria Nguyen. Confirm the formula returns An, Maria, and Nguyen across B2:D2, then restore A2 to An Nguyen so the workbook returns to the checkpoint.

Formula to try

In the practice workbook, enter the formula in B2 and copy it down through B4. Keep C2:C4 and any required spill cells empty so SPLIT has room to return its results.

=SPLIT(TRIM(A2)," ")
Result workbook with First/Last and the verified SPLIT(TRIM(...)) formula.

Checkpoint

Full nameFirstLast
An NguyenAnNguyen
Binh TranBinhTran
Chi LeChiLe

SPLIT(TRIM(A2)," ") returns the two parts horizontally; the adjacent destination cells must be empty.

Checkpoint: A1:C4 should show Full name | First | Last, with An Nguyen → An | Nguyen, Binh Tran → Binh | Tran, and Chi Le → Chi | Le. After the three-word-name test, restore A2 to An Nguyen and leave D2 empty.

Common mistake and correction

If you see #REF! or the result cannot spill, clear the destination cells to the right of the formula. For names with three or more words, do not force the result into exactly two columns; choose a parsing rule that matches the real data.

Independent practice

Try another three-word name in your workbook copy, note how many parts SPLIT returns, then restore the original sample data.

Key takeaways

  • ✓TRIM removes extra spaces before SPLIT separates the name.
  • ✓SPLIT on a space returns the name parts horizontally and needs empty spill cells.
  • ✓Copy the formula from B2 through B4 to process all three sample rows.
  • ✓Multi-word names can return more than two parts, so this example is not a universal name parser.
QUICK CHECK

Check your understanding

Answer four questions about the practice sheet.

1. Which formula is entered in B2?
2. Why must C2 and the spill cells to the right be empty?
3. When A2 is An Maria Nguyen, what should the formula return?
4. What should you do after the three-word-name test?

Continue learning

Previous lesson: Remove blank rows; Next lesson: Calculate running totals.