Skip to content

Excel function guide · Text

CONCAT and TEXTJOIN in Excel

CONCAT joins text from cells and strings into one, for example a first and last name with a space between. TEXTJOIN does the same with a delimiter you choose, such as a comma, and can skip empty cells.

Syntax

=CONCAT(text1, [text2], …)
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)
=A2&" "&B2

CONCAT and TEXTJOIN are in Excel for Microsoft 365, Excel 2019 and later, and Excel for the web. The & operator and the older CONCATENATE function work in every version.

ArgumentRequired?What it means
text1, text2, … (CONCAT)RequiredCells, ranges or text in quotes to join, in order.
delimiter (TEXTJOIN)RequiredWhat to put between items, e.g. ", ". Use "" for nothing.
ignore_empty (TEXTJOIN)RequiredTRUE skips empty cells; FALSE keeps them, leaving doubled delimiters.
text1, … (TEXTJOIN)RequiredThe cells or ranges to join.

CONCAT and TEXTJOIN examples

Every example uses this small table. The results are what Excel shows in the cell.

ABC
1First nameLast nameCity
2SaraAhmedRiyadh
3TomBakerLeeds
4LinaCosta
5YusufDemirIzmir
  1. 1. First and last name

    =CONCAT(A2, " ", B2)

    Result: Sara Ahmed

    The " " in the middle adds the space. =A2&" "&B2 gives the same result.

  2. 2. A list, skipping blanks

    =TEXTJOIN(", ", TRUE, C2:C5)

    Result: Riyadh, Leeds, Izmir

    TEXTJOIN puts the delimiter between the cities and skips Lina's empty cell.

  3. 3. Keeping blanks

    =TEXTJOIN(", ", FALSE, C2:C5)

    Result: Riyadh, Leeds, , Izmir

    With ignore_empty FALSE, the empty cell still gets a delimiter, so you see two commas in a row.

Try it now

Practise CONCAT and TEXTJOIN in a live sheet.

Type each formula yourself. Answers are checked by the same engine as the full course. No account needed.

Try it · CONCAT and TEXTJOIN
0 XP
D2
A
B
C
D
E
F
1
First name
Last name
City
Full name
2
Sara
Ahmed
Riyadh
3
Tom
Baker
Leeds
4
Lina
Costa
5
Yusuf
Demir
Izmir
6
7
All cities
8
Double-click or start typing to edit

Step 1 of 3

In D2, join the first and last name with a space between them, using CONCAT (or &).

Common CONCAT and TEXTJOIN mistakes

Practise this in Excel Quest

Build text: &, CONCAT, TEXTJOIN & TEXT Members

Course 7 · Text & Data Cleaning · 12 min

Create full names, email addresses, padded employee codes and readable summary sentences from separate fields.

This lesson is included in Formula Quest memberships. A free account starts you on the free lessons of the Excel Quest curriculum.

Related functions

All Excel function guides