ExcelFormulas logoExcelFormulas.
Ask AI
Text & ManipulationVerified QA Tested

TEXTJOIN.

Combines text from multiple ranges or strings, and includes a delimiter you specify between each text value.

Category: Text & Manipulation
ExcelExcel 365Excel 2021Excel 2019Google Sheets

How it works.

TEXTJOIN is the modern formula for combining text strings. It lets you specify a delimiter (like a comma, space, or hyphen) to place between values, and has a built-in option to automatically skip empty cells.

💡 In simple terms.

Glues text from different cells together into one cell, placing a separator of your choice (like a comma) in between.

Everyday Analogy

"Think of this like threading letter beads on a necklace. You choose a separator (like a space or comma) to put between each bead (word)."

Formula syntax.

Standard Excel Notation
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Tip:Arguments wrapped in square brackets [like_this] are optional; all other arguments are required.

Formula arguments.

Every parameter accepted by the TEXTJOIN function is detailed below.

delimiterRequired

The character(s) to place between each item.

Example value: ", "
ignore_emptyRequired

TRUE = Skip empty cells, FALSE = Include empty cells in output.

Default: TRUE
text1Required

The first cell range or text item to combine.

Example value: A2:C2

Simple example.

Step-by-Step Scenario

Assemble Full Address

Join Street, City, and Zip Code with a comma, ignoring any empty fields.

StreetCityZip CodeFormatted AddressFormat
123 Elm StSeattle98101—Comma Space
456 Pine Rd—90210——
789 Oak AveNew York10001——
Applied Formula
=TEXTJOIN(", ", TRUE, A2:C2)
Expected Result:Calculated output

Evaluates TEXTJOIN over the sample table cells, placing the verified output in cell D2:D6.

Formula generator.

Full Generator Wizard

Customize the argument fields below to generate a tailored TEXTJOIN formula ready to paste directly into your worksheet.

Generated FormulaReady to copy

Expected result behavior.

Returns "Calculated output" based on sample evaluation criteria and active cell references.

Sample Output:Calculated output
Output Type:Text String

Best Practices

  • TEXTJOIN can combine an entire range of cells (e.g. A2:A50) in a single argument, which was impossible with CONCATENATE.
  • It is extremely useful for building formatted lists, joining address fields, or creating CSV rows.

Common Mistakes

  • Excel caps formula return text length at 32,767 characters. Joining thousands of cells may trigger a #VALUE! error.
Compatibility Database

Platform & version compatibility.

Verified platform compatibility matrix based on actual spreadsheet calculation engine specifications.

Excel✓
Supported
Excel 365✓
Supported
Excel 2021✓
Supported
Excel 2019✓
Supported
Google Sheets✓
Supported
Microsoft Excel History & Version Availability

Introduced in Excel 2019 and Excel 365. Available across Excel 2019, Excel 2021, and Excel 365.

Google Sheets Compatibility Notes

100% compatible with Google Sheets with identical delimiter and ignore_empty parameters.

Frequently asked questions.

Technical Q&A
Can I use TEXTJOIN across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =TEXTJOIN(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in TEXTJOIN?↓

Excel caps formula return text length at 32,767 characters. Joining thousands of cells may trigger a #VALUE! error.

Does TEXTJOIN work identically in Google Sheets?↓

Yes, TEXTJOIN is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.