TEXTJOIN Function in Excel

Master TEXTJOIN to combine text from multiple cells with custom delimiters. Merge data, skip blanks, and create lists in Excel 2019+ and Sheets.

ExcelExcel
Google SheetsGoogle Sheets
text
intermediate
Syntax Preview
ExcelExcelGoogle SheetsGoogle Sheets
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Quick Answer
Comprehensive Explanation
How to Use TEXTJOIN - Step by Step

Practical Examples

Create Email List from Customer Names

Combine customer emails into a comma-separated list for mass mailing

Merge First and Last Names with Middle Initials

Create full names from separate name components

Result: Jennifer M Anderson

Build Product SKU from Components

Generate complete SKU codes from category, model, and variant data

Result: ELEC-LAP-PRO-045

Dynamic Address Builder

Construct complete mailing addresses from database fields

Result: 123 Main Street Apartment 4B New York, NY, 10001

Survey Response Aggregation

Combine multiple checkbox responses into a single cell

Result: Email Updates; Product News; Special Offers

Common Errors and Solutions

#NAME?

Excel doesn't recognize the TEXTJOIN function

Cause:

TEXTJOIN is not available in Excel versions before 2019. The function doesn't exist in Excel 2016, 2013, or earlier versions.

Solution:

1. Upgrade to Excel 2019, Excel 365, or use Google Sheets 2. Use alternative formulas like CONCATENATE or CONCAT 3. Create a custom VBA function to replicate TEXTJOIN functionality 4. Use Power Query to join text values

Prevention:

Check your Excel version before using TEXTJOIN. Go to File > Account to see your Office version.

Frequency: 35%

Example:

#VALUE!

TEXTJOIN returns a VALUE error

Cause:

The delimiter parameter is missing, invalid, or the result exceeds Excel's 32,767 character limit for a single cell.

Solution:

1. Ensure the delimiter is in quotes: TEXTJOIN(",", TRUE, ...) 2. Check if your combined text exceeds 32,767 characters 3. Verify all parameters are in the correct order 4. Split large datasets into smaller chunks

Prevention:

Always enclose text delimiters in quotes and monitor the length of combined text

Frequency: 25%

Example:

#SPILL!

Spill error when using TEXTJOIN with dynamic arrays

Cause:

In Excel 365, TEXTJOIN might conflict with dynamic array formulas, or there's data blocking the spill range.

Solution:

1. Clear cells below the formula to allow spilling 2. Use @ operator to prevent spilling: =@TEXTJOIN(...) 3. Convert dynamic arrays to static values first 4. Ensure no merged cells are in the spill area

Prevention:

Keep the area below dynamic formulas clear or use the @ operator when spilling is not desired

Frequency: 15%

Example:

Missing Values

Some text values are not included in the result

Cause:

The ignore_empty parameter is set to TRUE and cells contain spaces or formulas returning empty strings.

Solution:

1. Use FALSE for ignore_empty if you need all positions 2. Clean data with TRIM to remove spaces 3. Check if cells contain formulas returning "" 4. Use ISBLANK to verify truly empty cells

Prevention:

Understand the difference between empty cells and cells with spaces or zero-length strings

Frequency: 20%

Example:

Best Practices and Advanced Techniques

Combine TEXTJOIN with dynamic functions like FILTER, UNIQUE, or SORT for powerful data manipulation. For example, create a list of unique values: =TEXTJOIN(", ", TRUE, UNIQUE(A:A))

For large datasets (>10,000 cells), limit range references instead of using entire columns. Use A2:A10000 instead of A:A to improve calculation speed by up to 10x.

Remember that Excel cells can only contain 32,767 characters. When joining large amounts of text, monitor the total length to avoid truncation. Consider splitting into multiple cells if needed.

TEXTJOIN works identically in Excel 2019+, Excel 365, and Google Sheets. However, some combined functions like FILTER may have platform-specific syntax differences.

Always wrap TEXTJOIN in IFERROR when working with dynamic data sources to handle potential errors gracefully, especially when combining with other functions.

TEXTJOIN vs Alternative Functions
Related Formulas

Need Help with TEXTJOIN Function in Excel?

Stop struggling with formula syntax. Use AskFormulas to generate validated formulas instantly with our AI-powered tool.

Example Excel formula:

Related Formulas

CONCATENATE Function

Master CONCATENATE to join text in Excel and Google Sheets. Learn syntax, examples, errors, and modern alternatives like CONCAT and TEXTJOIN.

beginner
text
ExcelExcel
Validated
FILTER Function in Excel

Master the FILTER function to dynamically extract data meeting specific criteria. Learn syntax, examples, and error solutions for Excel 365 and Sheets.

intermediate
array
ExcelExcel
Validated
UNIQUE Function

The UNIQUE function returns unique values from a range or array, eliminating duplicates automatically. Perfect for creating distinct lists from data.

intermediate
array
ExcelExcel
Validated
LEFT Function in Excel

Extract text from the beginning of strings with the LEFT function. Learn syntax, examples, and error solutions for Excel and Google Sheets.

beginner
text
ExcelExcel
Validated