How to use TEXTJOIN in Excel (combine text with a delimiter)

Updated · DeskHowTo

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.

Jump to

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

  1. Click the result cell.
  2. Type =TEXTJOIN(", ", TRUE, A2:A20) and press Enter.
  3. The first argument is the delimiter; TRUE skips empty cells; then the range.

Join first and last names

  1. With first names in A and last in B: =TEXTJOIN(" ", TRUE, A2, B2).
  2. Fill down the column.
  3. Or build Last, First with =TEXTJOIN(", ", TRUE, B2, A2).

Dynamic arrays / unique lists

  1. On Microsoft 365: =TEXTJOIN(", ", TRUE, UNIQUE(A2:A100)) for a de-duplicated list.
  2. Wrap with IFERROR when the range may be empty.

TEXTJOIN vs CONCAT vs &

ApproachBest for
TEXTJOINRanges + delimiter + skip blanks
CONCATJoining 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 FALSE for ignore_empty — switch to TRUE.
  • 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.

Sources checked: Microsoft Support: TEXTJOIN function. Verified October 2026.