Excel functions / Text

TEXTJOIN

Joins a range of text with a separator, such as a comma, between each item.

Syntax=TEXTJOIN(delimiter, ignore_empty, text1, ...)

Arguments

delimiterWhat goes between each item, such as ", ".
ignore_emptyTRUE to skip empty cells, so you do not get doubled separators.
text1, ...The cells or ranges to join.

How it works

TEXTJOIN turns a column of names into one line, such as "Nina Shah, Omar Reid, Mary Ann Lee". The separator only goes between items, never at the end.

It is available in Excel 2019 and later.

Example

D2=TEXTJOIN(", ",TRUE,A2:A4)
ABCD
1NameEmail
2Nina Shahnina.shah@example.comNina Shah, Omar Reid, Mary Ann Lee
3Omar Reidomar@example.com
4Mary Ann Leemary.lee@example.com
5

Result: Nina Shah, Omar Reid, Mary Ann Lee. All three names, separated by a comma and a space.

Tips

Practise TEXTJOIN

Try it yourself in a real spreadsheet, with instant feedback on every answer.

Start the exercise

Related