How to use TEXTJOIN in Excel (combine text with a delimiter)
In Excel for Microsoft 365 / Excel 2021–2024 (verified 2026-10-24), use =TEXTJOIN(", ", TRUE, A2:A10) to combine values with a comma and space while skipping blanks (the TRUE argument).
TEXTJOIN replaces most CONCATENATE / & chains when you have a range. On Google Sheets the function name is the same.
Applies to Excel 2019 and later, Microsoft 365, Excel for Mac and Excel for the web. Older Excel without TEXTJOIN can use & or CONCAT helper columns.
Join a range with TEXTJOIN
Basic join
- Click the result cell.
- Type
=TEXTJOIN(", ", TRUE, A2:A20)and press Enter. - The first argument is the delimiter;
TRUEskips empty cells; then the range.
Join first and last names
- With first names in A and last in B:
=TEXTJOIN(" ", TRUE, A2, B2). - Fill down the column.
- Or build
Last, Firstwith=TEXTJOIN(", ", TRUE, B2, A2).
Dynamic arrays / unique lists
- On Microsoft 365:
=TEXTJOIN(", ", TRUE, UNIQUE(A2:A100))for a de-duplicated list. - Wrap with IFERROR when the range may be empty.
TEXTJOIN vs CONCAT vs &
| Approach | Best for |
|---|---|
| TEXTJOIN | Ranges + delimiter + skip blanks |
| CONCAT | Joining a few cells/ranges without a delimiter between every item |
& | Two–three pieces with custom logic |
Our take: default to TEXTJOIN for address lines, tag lists and CSV-like previews.
If it fails
- #NAME?: Excel version predates TEXTJOIN — upgrade or use
&. - #VALUE!: a delimiter or argument type is wrong — check quotes around the delimiter.
- Still showing blanks gaps: you passed
FALSEfor ignore_empty — switch toTRUE. - Need Flash Fill instead: for messy one-off patterns see Flash Fill.
Frequently asked questions
What does TEXTJOIN do in Excel?
It combines text from cells using a delimiter, optionally skipping blanks.
How do I skip blank cells when joining?
Set the second argument to TRUE: =TEXTJOIN(", ", TRUE, A2:A10).
Is TEXTJOIN available in Excel 2016?
No — it arrived in Excel 2019 / Microsoft 365. Use & or upgrade.
TEXTJOIN vs CONCATENATE?
TEXTJOIN handles delimiters and ranges better; CONCATENATE is legacy.
Does Google Sheets have TEXTJOIN?
Yes — same function name.