TEXTJOIN Function
Joins text with a separator between each piece, optionally skipping blanks.
Category
Text
Available in
Excel 2019+, Microsoft 365
Returns
Text
Overview
TEXTJOIN joins a list of values with a separator — a comma, a space, a line break — and can ignore empty cells so you never get “, ,”.
Combined with FILTER it turns a list of matches into one tidy line.
Syntax
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)
Arguments
| Argument | Required? | What it does |
|---|---|---|
| delimiter | Yes | What goes between each piece, such as ", ". |
| ignore_empty | Yes | TRUE skips blank cells; FALSE keeps them (and their separators). |
| text1, … | Yes | The cells, ranges or text to join. |
Examples
Example 1 — Skills list without gaps
Each person ticked a few skills; some cells are blank.
E2fx=TEXTJOIN(", ", TRUE, B2:D2)
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Name | Skill 1 | Skill 2 | Skill 3 | Skills |
| 2 | Ana | Excel | VBA | Excel, VBA | |
| 3 | Ben | Power Query | Excel | Power Query, Excel |
=TEXTJOIN(", ", TRUE, B2:D2) Explain
Example 2 — Everyone in a region
List every rep in the West region in one cell.
D2fx=TEXTJOIN(", ", TRUE, FILTER(A2:A6, B2:B6="West"))
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Rep | Region | West team | |
| 2 | Ana | West | Ana, Cara, Eli | |
| 3 | Ben | East | ||
| 4 | Cara | West | ||
| 5 | Dev | North | ||
| 6 | Eli | West |
=TEXTJOIN(", ", TRUE, FILTER(A2:A6, B2:B6="West")) Explain
Common mistakes
- 32,767-character limit. A joined result longer than that returns #VALUE!.
Notes
- Use CHAR(10) as the delimiter for one item per line (turn on Wrap Text).
- Related functions: CONCAT, TEXTSPLIT, FILTER.

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.