Function reference · Text

TEXTJOIN

Joins text from several cells into one, separated by a delimiter of your choice.

TEXTJOIN(delimiter, ignore_empty, text1, [text2, ...])

TEXTJOIN is CONCATENATE with the two things CONCATENATE lacks: a separator applied automatically between items, and the option to skip blanks so you do not end up with stray commas.

Arguments

ArgumentRequiredWhat it does
delimiter Yes What to put between items — ", " for a comma-separated list.
ignore_empty Yes TRUE skips blank cells. FALSE leaves a gap for each one.
text1 Yes The cells or ranges to join.

Worked example

RegionRepSales
WestAna1200
EastBen900
WestCara1500
NorthDan600
EastEve1100
=TEXTJOIN(", ", TRUE, B2:B6)

Returns Ana, Ben, Cara, Dan, Eve.

Every rep's name in one cell, comma separated.

Gotchas

Related functions