Function Problems

How to Combine First and Last Names in One Excel Cell

Kushani NimanthikaKushani Nimanthika Oct 26, 2026 869 views

Question details

The user needs to merge first and last names from separate columns into a single cell formatted as 'Last Name, First Name' without manually editing each row.

How to Combine First and Last Names in One Excel Cell
Product
Excel
Device & OS
not provided
Scenario
Formatting a contact list or spreadsheet where names are split across columns and need to be unified in a specific format.
Observed behavior
First and last names are isolated in different columns, making manual merging too time-consuming and prone to errors.
Before you start

Ensure you have inserted a blank column adjacent to your name data where the newly combined names will be generated.

Solution 1Recommended

Use Flash Fill to Automatically Combine Names

Flash Fill is the fastest and easiest method to combine data, as it automatically recognizes formatting patterns from your manual input.

Flash Fill senses the pattern of what you are typing and fills the rest of the column accordingly. This is ideal for quick formatting tasks where you do not need dynamic updates.

1
Create a new column

Insert a new, blank column directly next to the columns containing your first and last names.

2
Type the first combined name

In the first empty cell of the new column, manually type the name in your desired format (e.g., 'Smith, John') and press Enter.

3
Activate Flash Fill

Select the cell immediately below the one you just typed in. Go to the Data tab on the ribbon and click 'Flash Fill', or simply press the Ctrl + E keyboard shortcut.

4
Review the results

Scroll through the filled column to ensure accuracy. If your source data has inconsistencies, such as scattered email addresses or missing names, you may need to manually correct a few rows.

Use Flash Fill to Automatically Combine Names
Data Inconsistencies: If Flash Fill pulls unrelated data into the pattern, simply manually correct the first incorrect cell. Excel will learn from the correction and update the rest of the column.
Combine Data Easily in WPS Spreadsheet

Seamlessly Combine Spreadsheet Data with WPS Office

WPS Spreadsheet provides powerful and intuitive data handling tools, allowing you to merge names, reformat text, and organize large datasets instantly using intelligent features like Flash Fill.

  1. 1. Open your dataset in WPS Spreadsheet: Launch WPS Office and open the workbook containing your split name columns.
  2. 2. Type the desired pattern: In a new adjacent column, type the first name exactly as you want it formatted (e.g., 'Last Name, First Name').
  3. 3. Use the Flash Fill shortcut: Select the cell directly beneath your manual entry and press Ctrl+E.
  4. 4. Review the filled data: WPS Spreadsheet will instantly fill the remaining rows based on your established pattern.
Supports the Ctrl+E Flash Fill shortcut for rapid and intelligent data formatting.Fully compatible with Microsoft Excel formulas, including CONCAT, TEXTJOIN, and Ampersand operators.Lightweight, fast, and free alternative for managing complex spreadsheets.Clean and familiar user interface that requires no learning curve to master.
microsoft office alternative - wps office

Frequently Asked Questions

Why did Flash Fill pull incorrect data like email addresses?

Flash Fill relies on recognizing patterns in adjacent columns. If your source data contains inconsistencies, such as email addresses mixed with names or blank cells, Flash Fill might misinterpret the pattern. Always review the filled data and manually correct anomalies; the tool will often adapt based on your manual fixes.

Does the combined name update automatically if I change the original name?

If you use Flash Fill, the generated data is static text and will not update automatically. If you want the combined name to update dynamically when source cells change, you should use a formula like the ampersand (&) operator or the CONCAT function instead.

How do I combine names in the 'First Name Last Name' format instead?

Simply type the first name followed by a space and the last name (e.g., 'John Smith') in the first cell of your new column. Press Enter, then press Ctrl+E (Flash Fill). The software will recognize the new 'First Name Last Name' pattern and apply it to the remaining rows.