How to merge cells in excel first and last name
Tutor 5 (69 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To merge first and last name in Excel, use formulas or Flash Fill; do not use the Merge Cells command because it removes all but the upper-left value.
Common methods (question: Which method should I use?)
To pick a method, choose one of these based on your Excel version and whether you need to keep the original columns.
-
Formula with ampersand (works in all Excel versions).
-
Enter in C2:
=A2 & " " & B2. -
Press Enter, then fill down.
-
-
CONCAT function (modern Excel).
-
Enter in C2:
=CONCAT(A2," ",B2).
-
-
TEXTJOIN (handles missing parts and separators).
-
Enter in C2:
=TEXTJOIN(" ", TRUE, A2, B2). -
The
TRUEargument ignores empty cells.
-
-
CONCATENATE (older Excel, deprecated).
-
Enter in C2:
=CONCATENATE(A2," ",B2).
-
-
Flash Fill (fast, no formula).
-
In C2 type the full name exactly as you want, for example
John Smith. -
Select C3 and do Flash Fill: press
Ctrl+Eon Windows or⌘+Eon Mac. -
Excel will auto-fill the pattern.
-
-
Power Query (for large data sets, repeatable transform).
-
Use the Get & Transform/Data → From Table → Merge Columns → choose separator → Close & Load.
-
Step-by-step: use the ampersand method and convert results to plain text
-
In cell C2 enter
=A2 & " " & B2. -
Press Enter.
-
Select C2, then double-click the fill-handle or drag down to copy the formula for all rows.
-
Select the new column (C).
-
Copy (Ctrl+C on Windows, ⌘C on Mac).
-
Paste values: Home → Paste → Paste Values (or right-click → Paste Values).
-
Delete original columns A and B only after verifying results.
How to handle extra spaces or missing names (question: How do I remove extra spaces?)
To remove extra spaces, use TRIM:
-
Enter
=TRIM(A2 & " " & B2)and copy down.
TRIM removes leading, trailing, and duplicate spaces between names.
What happens if I use Merge & Center?
Do not use Merge & Center to combine first and last names because Merge & Center keeps the value in the top-left cell and discards the others. Use formulas or Flash Fill to combine text safely.
Windows vs Mac differences
-
Formula functions (
&,CONCAT,TEXTJOIN,CONCATENATE,TRIM) work the same on Windows and on Mac. -
Flash Fill keyboard shortcut:
Ctrl+Eon Windows,⌘+Eon Mac. -
Ribbon location for Paste Values is the same; keyboard shortcuts for Copy/Paste use Ctrl on Windows and ⌘ on Mac.
Troubleshooting (question: Why is my result showing #NAME? or blank?)
-
#NAME?means the function name is not recognized; use&instead or upgrade Excel forTEXTJOIN. -
Blank result means one or both source cells are empty; use
TEXTJOIN(" ",TRUE,A2,B2)to ignore blanks.
Quick examples (question: Show quick formulas I can copy)
-
Ampersand:
=A2 & " " & B2 -
TRIM + ampersand:
=TRIM(A2 & " " & B2) -
CONCAT:
=CONCAT(A2," ",B2) -
TEXTJOIN:
=TEXTJOIN(" ",TRUE,A2,B2)
Best practices
-
Keep original columns until merged values are verified.
-
Convert formulas to values before deleting source columns.
-
Use TEXTJOIN when middle names or missing parts are possible.
-
Use Power Query for repeatable, large-scale transformations.
Further help (question: Can you give me the exact steps for Flash Fill?)
To perform Flash Fill:
-
Type the desired merged result in the first cell of the results column (for example, C2:
John Smith). -
Select the cell below (C3).
-
Trigger Flash Fill by pressing
Ctrl+Eon Windows or⌘+Eon Mac. -
Verify the filled results and paste values if needed.
Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to merge excel files into one file
Answers · 1
How to merge excel files into one
Answers · 1
How to mail merge from excel to email
Answers · 1
How to mail merge from excel to pdf
Answers · 1