Home › Functions › Text › TEXTJOIN
Text function
TEXTJOIN function in Google Sheets
TEXTJOIN combines a list or range of text with a separator between each item, and can skip empty cells. It's the cleanest way to turn a column into a comma-separated list.
Syntax
=TEXTJOIN(delimiter, ignore_empty, text1, [text2, ...])
delimiterThe text placed between items, e.g. ", ". ignore_emptyTRUE to skip blank cells, FALSE to keep them (producing doubled separators). text1The first value or range. text2, ...Optional. More values or ranges.
Practice TEXTJOIN
Join all the tags in A2:A7 into one cell separated by ", ", skipping blanks. Answer in C2 .
Check answer
Hint
Show answer
↻ New data
Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.
This interactive exercise needs JavaScript enabled.
TEXTJOIN examples
Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.
Employee directory
Tips and common mistakes
For a de-duplicated list, Google Sheets lets you nest UNIQUE: =TEXTJOIN(", ", TRUE, UNIQUE(C2:C6)).
Related functions
Learning step by step? TEXTJOIN is covered in Lesson 26: TEXTJOIN Function of the free course.