Google Sheets’ TEXTJOIN function is your go-to for combining text from multiple cells into a single result without messy formulas like CONCATENATE or SPLIT. It handles splitting, sorting, and joining text seamlessly in one step—no manual concatenation or cleanup needed. To use it, you just need a spreadsheet with the data you want to merge. If your data has irregular spacing or requires custom delimiters, TEXTJOIN simplifies the process dramatically.

What You'll Need

  • A Google Sheets document with text data arranged in columns or rows
  • At least two cells containing text (or empty cells treated as spaces)
  • Access to the Google Sheets web interface or a desktop app

Step-by-Step

  1. Open your Google Sheet and select the cell where you want the combined text to appear. Example: If you’re merging "Name" and "Address" columns, pick the cell above the results you’ll generate.
  2. Enter the TEXTJOIN formula in this format: =TEXTJOIN(delimiter, TRUE, range1, range2, ...)

    Replace:

    • range1 with the first column of text (e.g., B2:B10)
    • range2 with subsequent columns (e.g., C2:C10)
    • delimiter with what separates entries (e.g., comma , or space " ")
    • TRUE to include empty cells as spaces (optional)

    Example: To join column B and C with a comma separator, type: =TEXTJOIN(",", TRUE, B2:B10, C2:C10)

  3. If using empty cells as spaces, add TRUE to force blank cells to appear as spaces instead of omitting items. Example: =TEXTJOIN(" | ", TRUE, A2:A5, B2:B5) combines names and IDs with pipe separators.
  4. Press Enter—the function will output all joined text at once. For large datasets, drag the bottom-right corner of the cell to auto-fill results across rows.
  5. Format the result like a heading or table if needed. Right-click the cell and choose "Format cells" to adjust fonts/borders.

Common Mistakes

  • Forgetting the delimiter: TEXTJOIN only requires one separator, not spaces between ranges. Omit it entirely for direct concatenation (e.g., TEXTJOIN("", TRUE, A1:A5)).
  • Mismatched ranges: Ensure all listed ranges use the same column/row structure. Example: TEXTJOIN(",", TRUE, B2:B10, C2:C9) skips the last row of C—adjust ranges to align.
  • Empty ranges missing data: If a range has no values, it skips the output. Use TRUE to force empty cells into spaces.
  • Overlooking text direction: TEXTJOIN preserves original text, but if your data spans multiple sheets, reference cells explicitly (e.g., =TEXTJOIN(",", TRUE, Sheets!B2:B10)).

Tips

  • Sort first: To join sorted columns, add SORT(range) inside TEXTJOIN: =TEXTJOIN(", ", TRUE, SORT(B2:B10, 1, TRUE), C2:C10)
  • Use wildcards for dynamic joins: Replace delimiters with patterns like * (e.g., TEXTJOIN("*", TRUE, A1:A5)) to combine partial matches.
  • Check for hidden characters: If results appear garbled, inspect cells for hidden symbols (Ctrl+Shift+8 in Excel) or formatting errors.
  • Backup data before editing large datasets. TEXTJOIN modifies only the formula cell; original data stays intact.

Troubleshooting

  1. Formula doesn’t return anything: Verify ranges are continuous and contain data. Test by typing a simple value like: =TEXTJOIN(" ", TRUE, B1) If it works, the issue is with your range.
  2. Empty result with valid ranges: Check for:
    • Case sensitivity (uppercase/lowercase letters)
    • Hidden formatting (e.g., bold/italic text)
    • Data type mismatches (e.g., numbers in text fields)
    Use =TEXTJOIN("", TRUE, TEXTJOIN("", TRUE, B1:B5)) to strip formatting.
  3. #VALUE! error: This happens if ranges contain formulas or non-text entries. Clear formulas or convert data to text: =TEXTJOIN(",", TRUE, TEXT(B1:B5))
  4. Performance lag with large datasets: TEXTJOIN processes rows sequentially. For millions of rows, consider:
    • Import data into a new sheet first
    • Use a script with GoogleAppsScript for parallel processing

Frequently Asked Questions

Why does TEXTJOIN ignore empty cells?

By default, empty cells are omitted. Use TRUE to include them as spaces or FALSE to skip them entirely.

Can I use TEXTJOIN with multiple delimiters?

No. TEXTJOIN requires a single delimiter for the entire output. Combine functions like SPLIT or FLATTEN for complex patterns.

What’s the maximum range size TEXTJOIN can handle?

Google Sheets limits formula ranges to ~1.5 million rows. TEXTJOIN won’t crash this limit, but performance degrades. Test with smaller samples first.

How do I join text across multiple spreadsheets?

Use sheet names like =TEXTJOIN(",", TRUE, Sheets1!A1:A10, Sheets2!B1:B10). Avoid spaces in sheet names by referencing full paths.

Why does my result have extra spaces?

Space-separated outputs may add trailing spaces. Trim excess with: =TRIM(TEXTJOIN(" ", TRUE, A1:A3))

Is TEXTJOIN faster than CONCATENATE?

Yes. TEXTJOIN consolidates multiple operations (split/join/concat) into one function, reducing calculation steps.

For advanced use cases, explore Google’s official documentation or Google Apps Script for custom logic.