Section: Excel & Google Sheets

TEXTJOIN in Google Sheets joins the text from a range into one cell and puts a delimiter of your choice between the pieces. A column of names becomes one comma-separated line, and blank cells can be skipped or kept. This guide covers the syntax, the ignore_empty switch, how TEXTJOIN differs from JOIN and CONCATENATE, and the cases where it saves a helper column.
What TEXTJOIN does
Google's description is short: it combines the text from multiple strings or arrays, with a specifiable delimiter separating the different texts. You give it the delimiter, a TRUE or FALSE for empty cells, and the text or ranges to join.
The difference from typing an ampersand chain is the range. One formula joins a hundred cells, and it keeps working when rows are added inside the range.

The syntax
=TEXTJOIN(delimiter, ignore_empty, text1, [text2, ...])
- delimiter is a string, possibly empty, or a reference to one. Leave it empty and the pieces are joined with nothing between them.
- ignore_empty is TRUE or FALSE. TRUE drops empty cells from the result; FALSE keeps them.
- text1 is any text item, a string or a range of strings.
- text2, ... are optional extra items, so you can join several ranges in one call.
Google's sample usage is =TEXTJOIN(" ", TRUE, "hello", "world"), which returns hello world, and =TEXTJOIN(", ", FALSE, A1:A5), which joins a column with a comma and a space.

The ignore_empty switch
This is the argument that decides whether the result looks tidy. Google's example uses a column with Hello in A2, there in A3, two empty cells at A4 and A5, and Sheets in A6.
With TRUE, the empty cells vanish and =TEXTJOIN(" ", TRUE, A2:A6) returns Hello there Sheets, with single spaces.
With FALSE, the empty cells are not skipped, so their delimiters stay. The same range with FALSE returns Hello there, then three spaces, then Sheets: one space for each of the two empty cells plus the separator before Sheets. Google's example table prints the same result for both rows, but the documented rule is what counts here, and FALSE keeps the gaps.
In practice TRUE is what you want nine times out of ten. Use FALSE when position matters, such as rebuilding a fixed-format line where an empty field still needs its comma.

TEXTJOIN compared with JOIN and CONCATENATE
- TEXTJOIN takes a delimiter, can skip empty cells, and accepts several ranges.
- JOIN concatenates the elements of one or more one-dimensional arrays using a delimiter, but it has no ignore_empty switch.
- CONCATENATE appends strings to one another and needs each piece named separately.
For a list from a column, TEXTJOIN is the one to reach for. For two or three cells, plain concatenation is easier to read.
Useful patterns
A comma-separated list of names from A2:A50 is =TEXTJOIN(", ",TRUE,A2:A50). For a line break between items, use CHAR(10) as the delimiter: =TEXTJOIN(CHAR(10),TRUE,A2:A50), and turn on text wrapping in the cell so the breaks show.
To build a sentence around a value, join fixed text and a cell: =TEXTJOIN(" ",TRUE,"Total sales for",B1,"were",TEXT(B2,"#,##0")). The TEXT wrapper keeps the number formatted instead of dropping it in raw.
Going the other way, SPLIT takes a joined string apart. A round trip is a quick way to clean a list that arrived as one long cell.
Where TEXTJOIN earns its keep
Three jobs come up again and again. Building a subject line from a row of fields. Turning a filtered column into one string to paste into an email. And producing a readable summary of a row, such as a task with its owner and due date in one cell, which is useful in a dashboard where a whole sentence beats three columns.
Excel has the same function, and TEXTJOIN in Excel takes exactly the same three arguments, so a formula you learn in one app transfers to the other.

Common problems
- Extra spaces between words. ignore_empty is FALSE, so empty cells kept their delimiters.
- Numbers lose their formatting. Wrap them in TEXT with the format you want.
- The line break does not show. The cell needs text wrapping switched on.
- Only the first row appears. The formula is inside a function that expects one value.
- Dates come out as serial numbers. Use TEXT with a date format.
- The delimiter is missing at the end. That is by design: the delimiter goes between items, not after the last one.
Questions and answers
What does TEXTJOIN do in Google Sheets?
It joins text from strings or ranges into one value, with a delimiter between the pieces.
What does ignore_empty do?
TRUE skips empty cells. FALSE keeps them and their delimiters.
Can TEXTJOIN join several ranges?
Yes. Pass them as text1, text2 and so on.
How do I get a line break between items?
Use CHAR(10) as the delimiter and switch on text wrapping.
Is TEXTJOIN the same in Excel?
The arguments are the same. Excel also has CONCAT and TEXTBEFORE, which Sheets does not share.
