Excel TEXTJOIN Function

TEXTJOIN combines text values with a delimiter between each item.

Use it to build comma-separated lists, readable labels, ID strings, names, or summaries from ranges while optionally skipping blank cells.

1
Choose a delimiter This goes between joined values
2
Choose blank handling Skip or keep empty values
3
Join the text Excel appends each value in order

TEXTJOIN syntax & arguments

Syntax

=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Required Optional
  1. 1

    delimiter

    Required

    The text to place between joined values, such as a space, comma, hyphen, or empty string.

  2. 2

    ignore_empty

    Required

    Controls whether blank values are skipped while joining:

    • TRUE — Ignore blanks: Skips blank cells and empty text values so extra delimiters are not inserted for them.
    • FALSE — Keep blanks: Includes blank positions, which can create repeated delimiters when source values are empty.
  3. 3

    text1

    Required

    The first text value, cell reference, range, or formula result to join.

  4. 4

    text2

    Optional Repeatable

    Additional text values, cell references, ranges, or formula results to append in order.

Example

=TEXTJOIN(", ", TRUE, A2:A10)

Join non-empty values from A2:A10 with a comma and space between each value.

TEXTJOIN caveats

  • The delimiter is inserted between items only

    TEXTJOIN does not add a delimiter before the first item or after the last item.

  • The result has a cell length limit

    Very large joins can exceed Excel's maximum cell text length and return an error.

Joining a few fixed pieces? CONCATENATE works for simple ordered pieces, while TEXTJOIN is usually cleaner for ranges or delimiter-based lists.

Intro TEXTJOIN practice problem

Solve the intro problem directly here, or open it on its own page.

Open full problem

Advanced TEXTJOIN practice problems

Use TEXTJOIN alongside other Excel functions in realistic, less-prescriptive challenges.