New Tool Radar

AI for Data & Spreadsheets

How to Merge First and Last Name Columns in a CSV in Excel

Merge separate first and last name columns into one full-name column in Excel with a formula you can check.

Schematic illustration for How to Merge First and Last Name Columns in a CSV in Excel: three numbered steps - Add a full-name formula; Check each merged name; Paste values over formula.

A mailing list with first name and last name in separate columns needs one full-name column for letters and labels. A formula that joins the two parts with a space does the job, and checking each merged name against the two parts catches the rows where a middle name or a missing surname breaks the pattern.

Prerequisites

  • Excel
  • The CSV with first and last name columns
  • A copy of the source file, so the original stays untouched.

Steps

  1. Add a full-name column with the formula =A2&" "&B2, adjusted to the name columns, or use TEXTJOIN if it is available.
  2. Copy the formula down, then read each merged name against its two parts.
  3. Fix any name with a missing surname or a double surname by hand.
  4. Copy the full-name column and use Paste Special, Values, to replace the formulas with values.
  5. Keep the original two columns until the check is done, then hide them rather than deleting them.

Worked example: Fictional member names merged into full names

The practice table below is a fictional five-member list after merging. The count column is 1 per member, and the total is the number of members. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.

Full name Count
Farah Ahmed 1
George Baker 1
Hannah Cole 1
Ivan Dunn 1
Julia Evans 1
Total 5

Expected result. Five full names merged, each matches its two parts, and the count is 5.

Limits

  • A formula that joins a blank surname leaves a trailing space, so check those rows.
  • Merging creates values that will not update if the source columns change, so paste as values only after checking.

Sources

See all