Skip to content

How to combine first and last names in Excel in Excel

Join first and last name into one cell with the & operator, CONCAT or TEXTJOIN, and build a "Last, First" version for sorting.

First names are in column A and last names in column B. You want one cell with the full name, or a "Last, First" version for a sorted list.

The quickest formula uses the ampersand, which joins text: =A2&" "&B2. The " " in the middle is a space written as text. Leave it out and the names run together.

CONCAT does the same job as a function, and accepts ranges. TEXTJOIN is better when some parts may be empty, such as a middle name: it takes a delimiter once and can skip blank cells, so you do not get double spaces.

Joining formulas return text and update when the parts change. If you want to keep only the joined text and delete the original columns, copy the results and use Paste Special, Values, first. Otherwise the joined cells will break when the sources go.

The older CONCATENATE function still works but offers nothing the newer ones do not, so you can ignore it. The ribbon has Flash Fill: type one example beside the data, then choose Data > Flash Fill or press Ctrl+E. It writes fixed text rather than a formula.

If the pieces come from messy data, run them through TRIM first. The Foundations track introduces the & operator in its own lesson.

3 ways to do it

1Ampersand

=A2&" "&B2

  1. In C2 type =A2&" "&B2 and press Enter.
  2. Double-click the fill handle in the corner of C2 to copy the formula down.

2TEXTJOIN (skips blanks)

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

  1. In D2 type =TEXTJOIN(" ",TRUE,A2:B2). The first argument is the delimiter and TRUE skips empty cells.
  2. To include a middle-name column, extend the range, for example A2:C2. A blank middle name adds no extra space.

3Flash Fill (fixed text)

  1. In the first cell of an empty column type the full name exactly as you want it.
  2. Choose Data > Flash Fill, or press Ctrl+E. Excel fills the pattern down the column as text.

Try it yourself

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In C2, join the first name and last name with a space between them, then fill down to C8.

Answer in C2, then it fills down to C8.

C2
A
B
C
D
1
First
Last
Full name
Last, First
2
Nadia
Hughes
3
Owen
Ferreira
4
Mei
Lindqvist
5
Carlos
Abara
6
Imogen
Marsh
7
Dev
Chaudhry
8
Hana
Duarte

Learn it properly, one graded sheet at a time.

Logic and text covers this in lesson 15, CONCAT and building keys.