How to Combine First and Last Names in One Excel Cell
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.

- 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.
Ensure you have inserted a blank column adjacent to your name data where the newly combined names will be generated.
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.
Insert a new, blank column directly next to the columns containing your first and last names.
In the first empty cell of the new column, manually type the name in your desired format (e.g., 'Smith, John') and press Enter.
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.
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 the Ampersand (&) Formula
A formula-based approach is best when your source data might change in the future, as the combined results will update automatically.
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. Open your dataset in WPS Spreadsheet: Launch WPS Office and open the workbook containing your split name columns.
- 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. Use the Flash Fill shortcut: Select the cell directly beneath your manual entry and press Ctrl+E.
- 4. Review the filled data: WPS Spreadsheet will instantly fill the remaining rows based on your established pattern.

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.




