Google Sheets TEXTJOIN Function: Syntax, Examples & Tips

The TEXTJOIN function combines text from multiple cells into one string, using a specified delimiter to separate the values.
Google Sheets
TEXTJOIN(delimiter, ignore_empty, text1, [text2], …)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is TEXTJOIN?
  3. A Practical Example
  4. TEXTJOIN Formula
  5. Result of the Formula
  6. Why Use TEXTJOIN?
  7. Key Takeaways:
  8. Example use case

Parameters

delimiter:
The character or characters that you want to use to separate the text items in the resulting string.

ignore_empty:
A boolean value (TRUE or FALSE) that specifies whether to ignore empty cells in the text items.

text1:
The first text item or range of cells that you want to join.

[text2]:
Additional text items or ranges of cells that you want to join, which can be specified as additional arguments.

What is TEXTJOIN?

The TEXTJOIN function in Google Sheets is a powerful tool used to concatenate multiple strings of text from a range or array, with a specified delimiter separating each value. It simplifies the process of combining text, especially when dealing with large datasets or when you want to include only non-empty cells. Unlike the traditional CONCATENATE function, TEXTJOIN allows for more flexibility and efficiency in handling text strings.

In simpler terms, TEXTJOIN allows you to merge text from different cells into one cell, making it easier to create summaries or combined entries.

A Practical Example

Imagine you are managing a list of students and their respective subjects in a Google Sheets document:

Students Table:

StudentIDStudentNameSubjects
1AliceMath
2BobScience
3CharlieMath
4DavidHistory

You want to create a single cell that lists all the subjects each student is enrolled in, separated by commas.

TEXTJOIN Formula

To achieve this, you would use the TEXTJOIN function as follows:

Google Sheets
=TEXTJOIN(", ", TRUE, Students!C:C)

In this formula:

  • ", " is the delimiter that separates each subject.
  • TRUE indicates that empty cells should be ignored.
  • Students!C:C is the range from which the function will concatenate the subjects.

Result of the Formula

When you apply the TEXTJOIN formula to the Students Table, the output would look like this:

StudentIDStudentNameSubjects
1AliceMath
2BobScience
3CharlieMath
4DavidHistory

If you were to add a new subject for a student, the result would automatically update to include the new subject in the concatenated list.

Why Use TEXTJOIN?

TEXTJOIN is beneficial because it streamlines the process of combining text from multiple cells. It eliminates the need for complex formulas or manual concatenation, saving time and reducing errors. Additionally, it allows for the inclusion of only non-empty cells, making your data cleaner and more readable.

Key Takeaways:

  • TEXTJOIN: A modern Google Sheets function that concatenates text from a range with a specified delimiter.
  • Flexible: Can ignore empty cells, making it suitable for various data scenarios.
  • Efficiency: Simplifies the process of merging text, especially in large datasets.
  • Common Use Cases: Ideal for creating summaries, lists, and any scenario where text combination is necessary.

TEXTJOIN is an essential function for anyone working with text data in Google Sheets, providing a powerful way to enhance data presentation and organization.

Happy spreadsheeting!

Example use case

You have a list of sales data in Column A and corresponding product names in Column B. Use TEXTJOIN to combine all product names sold in a specific month into a single cell, streamlining reporting and making it easier to analyze sales performance.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.