How to use TEXTJOIN in Excel

Learn how Excel TEXTJOIN combines text across cells and ranges with a delimiter, with a worked example and a link to hands-on practice.

Syntax

=TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)

Arguments

What TEXTJOIN does

TEXTJOIN merges text from multiple cells or ranges into a single string. You provide a delimiter—such as a comma or space—and Excel inserts it between each value. You can also tell it to skip empty cells automatically.

A small example

Here is a list of workshop sessions and speakers. The formula in the blank result cell joins all speaker names into one comma-separated list.

SessionSpeaker
MorningAlex
KeynotePriya
ClosingElena
All Speakers

Formula: =TEXTJOIN(", ", TRUE, B2:B4) → Alex, Priya, Elena

Skip blank cells

Set ignore_empty to TRUE to ignore blank cells in your range. If you set it to FALSE, Excel includes those empty cells, leaving repeated delimiters such as Alex, , Elena.

Common mistake: delimiter without quotes

Always enclose text delimiters in quotation marks, such as "-". Typing =TEXTJOIN(-, TRUE, B2:B4) won't be accepted: Excel shows a formula error message and the formula is never entered. Also keep the argument order in mind: delimiter first, then ignore_empty, then your text range.

Related guides

SUM