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.
Syntax =TEXTJOIN(delimiter, ignore_empty, text1, ...)
=TEXTJOIN(", ",TRUE,A1:A4)Arguments
| Name | Required | What to pass |
|---|---|---|
| delimiter | Required | The separator placed between items. A comma and a space is ", ". |
| ignore_empty | Required | TRUE skips empty cells. FALSE keeps a gap for each empty cell. |
| text1 | Required | The 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
| A | B | |
|---|---|---|
| 1 | Maya | Maya, Jordan, Priya |
| 2 | ||
| 3 | Jordan | |
| 4 | Priya |
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.