Function · Text

Excel TEXTJOIN function

The Excel TEXTJOIN function joins text with a delimiter and can skip empty cells. Maya, a blank, Jordan, and Priya become Maya, Jordan, Priya.

Excel 2019, Excel 2021, Excel 2024, Microsoft 365, and Excel for the web. Also in Google Sheets. Excel 2016 does not have it.

Syntax =TEXTJOIN(delimiter, ignore_empty, text1, ...)

TEXTJOIN
=TEXTJOIN(", ",TRUE,A1:A4)

Arguments

NameRequiredWhat to pass
delimiterRequiredThe separator placed between items. A comma and a space is ", ".
ignore_emptyRequiredTRUE skips empty cells. FALSE keeps a gap for each empty cell.
text1RequiredThe first piece, or a range. More arguments can follow.

Examples

A name list with one blank row

=TEXTJOIN(", ",TRUE,A1:A4)

Result Maya, Jordan, Priya

=TEXTJOIN(", ",TRUE,A1:A4)B1
Names
AB
1MayaMaya, Jordan, Priya
2
3Jordan
4Priya
A picture of the sheet, not a live calculator.

TEXTJOIN puts a delimiter between pieces and can ignore blanks. Maya, an empty cell, Jordan, and Priya become Maya, Jordan, Priya when the second argument is TRUE. FALSE keeps the empty cell, and the result is Maya, , Jordan, Priya, comma space comma, which is rarely what a mailing list wants.

The first argument is the delimiter, and it can be empty if you want the pieces smashed together. A range is one argument, which is the practical difference from CONCATENATE. CONCAT also accepts a range and does not take a delimiter. Excel 2016 has neither TEXTJOIN nor CONCAT.