TEXTJOIN

TEXTJOIN(separator, list)

Joins the values of a column into one piece of text, such as the codes of a task's predecessors separated by commas. Blanks are left out entirely, with no empty gap between separators, and the values come in the set's order: tasks in logic order, then by task code.

Arguments

ArgumentWhat to give it
separatorThe text to put between values, like ", ".
listA column read from a set of rows, like Predecessors[Task code]. Any type: a date shows as 2026-01-09, a duration in working days of its own task's calendar, like 5d. An empty list gives "".

Examples

Formula
=TEXTJOIN(", ", Predecessors[Task code])

The codes of the task's predecessors, in one cell.

Formula
=TEXTJOIN(", ", FILTER(Predecessors, Predecessors[Status] <> "Complete")[Task code])

Only the predecessors still holding the task up.

Formula
=TEXTJOIN(" / ", Assignments[Resource])

The resources on the task, by name.

Formula on WBS rows
=TEXTJOIN(", ", FILTER(Tasks, Tasks[Critical])[Task code])

On a WBS row: the critical tasks in the node and below it.

Reach for something else when

You wantUse
How many values there areCOUNT
How many different values there areCOUNTDISTINCT
Two or three single values joinedthe & operator: [Task code] & " " & [Name]
One value as text, formattedTEXT

Common questions

Where is Excel's ignore_empty argument?

There isn't one: blanks are always left out. TEXTJOIN takes the separator and the list, and nothing else; with three arguments the editor says "TEXTJOIN(separator, list) takes 2 arguments".

The editor refuses this
=TEXTJOIN(", ", TRUE, Predecessors[Task code])

What does "TEXTJOIN needs a separator and a list" mean?

The second argument wasn't a list: often a set of rows, like Predecessors. Say which field to join, as in Predecessors[Task code].

The editor refuses this
=TEXTJOIN(", ", Predecessors)

Does TEXTJOIN remove duplicates?

No: every value is joined, repeats and all.