What is TEXTJOIN in Google Sheets?

TEXTJOIN merges many text values into one string with a delimiter between them. The ignore_empty argument skips blanks so you do not get double commas. It builds display labels, CSV-like rows, and summary lines from wide tables.

When to use it

Use TEXTJOIN to combine address parts, tag lists, or selected columns into one export field.

When to skip it

Skip TEXTJOIN when you need to split apart instead of join, or when QUERY GROUP_CONCAT style aggregation is clearer.

How it works

  1. 1

    Choose delimiter string such as comma, slash, or line break char.

  2. 2

    Set ignore_empty TRUE to drop blank cells from the join.

  3. 3

    List ranges or cells as additional arguments after the delimiter settings.

  4. 4

    Wrap with IF when the whole join should be blank if key cell is empty.

  5. 5

    Mind formula length limits on enormous ranges.

  6. 6

    Use BYROW with TEXTJOIN inside LAMBDA for per-row composite keys.

Examples in Google Sheets

Full address

=TEXTJOIN(", ", TRUE, A2, B2, C2, D2) builds city, state line from parts.

Tag string

=TEXTJOIN(" | ", TRUE, E2:H2) merges active tag columns skipping empties.

Row label

=BYROW(A2:C, LAMBDA(r, TEXTJOIN("-", TRUE, r))) makes SKU codes per row.

Build this without starting from a blank cell

Use a Better Sheets tool for TEXTJOIN, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • ignore_empty FALSE leaving ugly double delimiters around blanks.
  • Joining numbers without TEXT when locale adds odd formatting.
  • TEXTJOIN on whole rows including ID columns you did not want exposed.
  • Exceeding cell character limit on huge joins.
  • Using CONCATENATE instead of TEXTJOIN when delimiter control matters.

Frequently asked questions

TEXTJOIN vs CONCATENATE?
TEXTJOIN adds delimiters and can ignore empty cells in one call.
TEXTJOIN vs ampersand?
Ampersand chains need manual delimiter logic. TEXTJOIN is cleaner for lists.
Line break delimiter?
Use CHAR(10) as delimiter for multi-line inside one cell.
TEXTJOIN arrays?
Yes across ranges; results may spill when used in array context.
TEXTJOIN with FILTER?
TEXTJOIN(delimiter, TRUE, FILTER(range, condition)) joins only matching rows.
Character limit?
Google Sheets cells cap around 50k characters. Split output if needed.
TEXTJOIN and dates?
Dates join as serial numbers unless wrapped in TEXT with a format.

Related Tutorials

Watch how TEXTJOIN works

Browse more tutorials
How to Merge Cells in Google Sheets

How to Merge Cells in Google Sheets

A master class on merging cells. How to merge two cells. How to merge mu...

Related blog posts

Guides that explain TEXTJOIN in more depth.

Browse the blog

Related glossary terms

Done reading about TEXTJOIN?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.