fxExcelReps

← How-to guides

How to Combine First and Last Name in Excel

Join the two cells with & and put a space in quotes between them: =A2&" "&B2. CONCAT does the same, and TEXTJOIN adds the separator for you and skips empty cells.

{"cells": {"A1": "First", "A2": "Anna", "A3": "Ivan", "A4": "Maria", "A6": "Initials", "B1": "Last", "B2": "Petrova", "B3": "Georgiev", "B4": "Ivanova", "B6": "=LEFT(A2,1)\u0026\". \"\u0026B2", "C1": "Full name", "C2": "=A2\u0026\" \"\u0026B2", "C3": "=A3\u0026\" \"\u0026B3", "C4": "=A4\u0026\" \"\u0026B4", "D1": "Last, First", "D2": "=B2\u0026\", \"\u0026A2", "D3": "=B3\u0026\", \"\u0026A3", "D4": "=B4\u0026\", \"\u0026A4"}, "focus": "C2", "note": "Change a name in A or B."}

The & operator

Works in every version. Every piece of text in a formula goes in double quotes.

=A2&" "&B2Anna Petrova.
=B2&", "&A2Petrova, Anna.
=LEFT(A2,1)&". "&B2A. Petrova.

CONCAT and TEXTJOIN

TEXTJOIN puts the separator between the parts and, with TRUE, leaves out empty cells, so a missing middle name doesn't leave a double space.

=CONCAT(A2, " ", B2)The same as the & version.
=TEXTJOIN(" ", TRUE, A2:C2)First, middle and last name; a blank middle name is skipped.

Fix the case at the same time

Names from systems are often in capitals.

=PROPER(A2&" "&B2)ANNA PETROVA becomes Anna Petrova.

Common mistakes

The names are stuck together
You forgot the space: =A2&B2 gives AnnaPetrova. Add " " between them.
Double spaces
One of the cells already ends with a space. Use =TRIM(A2&" "&B2).

Frequently asked questions

How do I keep the full name if I delete the original columns?

Copy the result column and Paste Special → Values first; otherwise the formulas break.

Is there a shortcut without formulas?

Type the first full name by hand and press Ctrl+E (Flash Fill).

How do I join a whole column into one cell?

=TEXTJOIN(", ", TRUE, A2:A100). See TEXTJOIN.

Practise it

CONCATTEXTJOINPROPER

Think you know this?

15 formula tasks, no hints, with a leaderboard. Absolute, relative and mixed references included.

Take the Pro Challenge →

More how-to guides

How to Split Text by a Delimiter in Excel

Split text at a comma, dash or space in Excel with TEXTBEFORE and TEXTAFTER, LEFT, MID and FIND, or Text to Columns.

How to Sum by Month in Excel

Total amounts by month in Excel from a list of dates, with SUMIFS and EOMONTH or SUMPRODUCT with MONTH. Live example included.

How to Calculate Age in Excel

Calculate age from a date of birth in Excel with DATEDIF, in years or in years and months, and why subtracting years gives wrong ages.

How to Calculate Days Between Two Dates in Excel

Count days between two dates in Excel by subtracting them, count working days with NETWORKDAYS, and get months or years with DATEDIF.