How to Combine First and Last Names in Excel

📅 Aug 25, 2026 📝 Sarah Miller

Manually merging disjointed first and last name columns in Excel is a tedious, error-prone task. While standard database exports frequently separate these fields, relying on manual copy-pasting drastically slows down reporting.

Implementing a dynamic formula grants you immediate data uniformity and hours of reclaimed productivity. However, a key stipulation for success is properly managing irregular middle initials and trailing spaces. Leveraging concrete solutions like =A2&" "&B2 or =TEXTJOIN(" ", TRUE, A2, B2) guarantees clean, professional results. Below, we outline the exact steps to apply these formulas and streamline your dataset.

How to Combine First and Last Names in Excel

Managing data in Excel often requires restructuring text. One of the most common administrative tasks is combining first and last names stored in separate columns into a single, cohesive full name column. Whether you are preparing a mailing list, setting up an HR database, or organizing client information, knowing how to merge text efficiently can save you hours of manual data entry.

In this comprehensive guide, we will explore five different methods to combine first and last names in Excel. We will cover classic formulas, modern Excel functions, and no-formula alternative features like Flash Fill, ensuring you have the right tool for any scenario.

Method 1: The Ampersand (&) Operator (The Simplest & Most Popular Way)

The ampersand symbol (&) is Excel's concatenation operator. It functions as a "glue" that joins text strings from different cells together. It is highly favored because it is easy to remember, incredibly fast to type, and works in all versions of Microsoft Excel.

How to Use the Ampersand Formula

Assume your dataset has the first name in cell A2 (e.g., "Jane") and the last name in cell B2 (e.g., "Doe"). To combine them with a space in between, use the following formula:

=A2 &
" " &
B2

Why the Space Matters

If you write the formula as =A2 & B2, Excel will merge the cells directly, resulting in "JaneDoe". To insert a space, you must explicitly include a space character enclosed in double quotation marks (" "), flanked by ampersands on both sides.

Variation: Last Name, First Name

In many formal databases, names are formatted as "Last Name, First Name". You can easily adjust the ampersand formula to accommodate this by placing a comma and space inside the quotation marks:

=B2 &
", " &
A2

This will output "Doe, Jane".

Method 2: The CONCAT and CONCATENATE Functions

Excel offers built-in functions designed specifically for merging text. While the ampersand operator is highly popular, using functions can make complex sheets easier to read and manage.

CONCATENATE (The Legacy Function)

For decades, CONCATENATE was the go-to function for joining text. Although Microsoft has technically replaced it with CONCAT in newer versions of Excel, it remains available for backward compatibility with older workbooks.

=CONCATENATE(A2, " ", B2)

CONCAT (The Modern Replacement)

Introduced in Excel 2016 and Office 365, the CONCAT function is shorter and more powerful than its predecessor. It behaves exactly the same way when combining individual cells:

=CONCAT(A2, " ", B2)

Note: Just like with the ampersand, you must include the " " argument to avoid having the names run together.

Method 3: The TEXTJOIN Function (Best for Multiple Names or Initials)

If you are using Excel 2019, Excel 365, or Excel for the Web, TEXTJOIN is the most advanced and flexible formula for merging text. Unlike CONCAT, TEXTJOIN allows you to specify a; a space or comma) just once, and it can automatically ignore empty cells.

The Syntax of TEXTJOIN

=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)

Combining First and Last Names with TEXTJOIN

To join a first name in A2 and a last name in B2:

=TEXTJOIN(" ", TRUE, A2, B2)
  • " ": This is the; space) that Excel will insert between every cell you reference.
  • TRUE: This tells Excel to ignore any blank cells in the referenced range.
  • A2, B2: These are the cells containing the text you want to merge. You can also select a range, such as A2:B2.

Why TEXTJOIN is Superior for Middle Names

If your dataset includes a middle name column (Column B) that is occasionally blank, standard ampersand or CONCAT formulas will leave you with double spaces (e.g., "Jane Doe"). Because TEXTJOIN has an "ignore empty" argument, it handles missing middle names flawlessly:

=TEXTJOIN(" ", TRUE, A2, B2, C2)

If B2 (middle name) is blank, the formula skips it and outputs "Jane Doe" with only a single space between the first and last names.

Method 4: Formatting and Cleaning Names While Combining

Real-world data is rarely perfect. Often, names are imported with inconsistent capitalization (e.g., "jAnE" or "DOE") or trailing spaces. You can nest other Excel functions inside your combination formulas to clean up the data on the fly.

1. Fixing Capitalization with PROPER

The PROPER function capitalizes the first letter of each word and converts all other letters to lowercase. This is perfect for standardizing name formats.

=PROPER(A2 & " " & B2)

If A2 is "mArY" and B2 is "sMiTh", this formula returns "Mary Smith".

2. Removing Extra Spaces with TRIM

If your source data contains accidental leading or trailing spaces, it can ruin your formatting. The TRIM function strips all extra spaces, leaving only single spaces between words.

=TRIM(PROPER(A2 & " " & B2))

This nested formula is an industry-best practice for ensuring clean, uniform name directories.

Method 5: Flash Fill (The Formula-Free Alternative)

If you need to combine names quickly and do not want to write formulas, Excel's Flash Fill feature is an incredibly smart, time-saving tool. Flash Fill detects patterns in your data entry and automatically fills the remaining cells for you.

How to Use Flash Fill to Combine Names

  1. Create a new column next to your First Name and Last Name columns and label it "Full Name".
  2. In the first data row (e.g., row 2), manually type the combined name exactly how you want it (e.g., "Jane Doe"). Press Enter.
  3. Begin typing the second combined name in the cell below.
  4. Excel will display a light-gray preview list of the combined names down the rest of the column.
  5. Press Enter to accept the suggestions, or press Ctrl + E on your keyboard to instantly run Flash Fill.

Pros: Fast, requires no knowledge of formulas, and easily handles custom punctuation.

Cons: Unlike formulas, Flash Fill results are static. If you change a first or last name in the source columns, the combined name column will not update automatically.

Comparison of Methods

Method Dynamic updates? Handles blank cells? Best used for...
Ampersand (&) Yes No (can cause extra spaces) Quick, simple combinations in any Excel version.
CONCAT / CONCATENATE Yes No Standard formula practices and readability.
TEXTJOIN Yes Yes (ignores them automatically) Complex names (incorporating middle names/suffixes).
Flash Fill No N/A One-off cleanups where formulas are not needed.

Summary

Combining first and last names in Excel can be accomplished in several ways depending on your exact requirements. For quick, dynamic updates, the Ampersand (&) operator is unmatched. If you are dealing with complex data that includes middle names or potential blank entries, the TEXTJOIN function is the most robust programmatic choice. Finally, when you need a fast, formula-free solution, Flash Fill is your best friend. By mastering these techniques, you can ensure your spreadsheets remain clean, organized, and professional.

Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.