Syntax
The second argument, ignore_empty, is what sets TEXTJOIN apart from older text-combining approaches: set it to TRUE and any blank cells in the range are skipped instead of leaving stray delimiters in the result (like a name with a double comma where a middle name would go). TEXTJOIN accepts a whole range as one argument, unlike CONCATENATE, which needs every cell listed individually.
Examples
Joins five cells into a single comma-separated list, skipping any that are blank.
Combines three individual cells with a dash between them — useful for building an ID or SKU from separate fields.
An array-style variant for edge cases where you need extra logic per cell before joining, entered with Ctrl+Shift+Enter in older Excel.
Paste your own TEXTJOIN formula and get a plain-English explanation, or describe what you need and let FormulaFixer write it for you.
Explain a TEXTJOIN formula →More formulas