How to Fix TEXTJOIN Returning Zero Instead of Source Text in Excel
Question details
The user needs to fix a TEXTJOIN formula that is returning a zero or skipping expected text rather than outputting the correctly concatenated source strings.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Combining text from a specific source column based on matching criteria from a separate column using the TEXTJOIN function.
- Observed behavior
- The formula returns a zero or misses text because the matching criteria and source columns do not align properly. It may also result in a #VALUE! error if character limits are exceeded.
Verify that your data grid has identical row dimensions for both the criteria range and the source text range before modifying the formula.
Use FILTER Inside TEXTJOIN to Align Source and Criteria
Nesting the FILTER function inside TEXTJOIN ensures that text is dynamically extracted and joined only when the criteria exactly match the source rows.
When referencing separate columns for criteria and output, misaligned ranges can cause Excel to return zeros or skip data. Using the FILTER function simplifies the array logic by directly fetching matching text.
Check your worksheet to locate the exact column containing the text you want to return (e.g., Column AL) and the column containing your condition (e.g., Column S).
In your target cell, start by typing the FILTER function to match your criteria. For example: =FILTER('Master Grid'!$AL187:$AL288, 'Master Grid'!S187:S288="x", "")
Enclose the FILTER formula within TEXTJOIN, specifying your delimiter and setting 'ignore_empty' to TRUE. The complete formula should look like: =TEXTJOIN(" • ", TRUE, FILTER('Master Grid'!$AL187:$AL288, 'Master Grid'!S187:S288="x", ""))
Press Enter to evaluate the formula. The cell will now display the concatenated text elements properly separated by your chosen delimiter.

Check for Cell Character Limits
Ensure the combined output string does not exceed the maximum character limit for a single cell, which causes formula errors.
Solve Complex Formulas Easily with WPS Spreadsheet
WPS Spreadsheet provides comprehensive support for dynamic array functions, including TEXTJOIN and FILTER. You can effortlessly manage complex datasets, troubleshoot errors with built-in evaluation tools, and work with full Microsoft Excel compatibility.
- 1. Open Your Workbook: Launch WPS Spreadsheet and open the file where your TEXTJOIN formula is returning errors.
- 2. Apply the Dynamic Formula: Click the target cell, type the nested TEXTJOIN and FILTER formula, and press Enter to instantly extract and combine your data.
- 3. Use Error Checking: If a warning icon appears, click it and select 'Trace Error' to automatically identify misaligned arrays or character limit breaches.

Frequently Asked Questions
Why does TEXTJOIN return a #VALUE! error?
TEXTJOIN returns a #VALUE! error if the resulting concatenated string exceeds the cell character limit of 32,767 characters. You must reduce the range size or the text length to resolve this.
Can TEXTJOIN automatically ignore blank cells?
Yes. The second argument in the TEXTJOIN function is 'ignore_empty'. Setting this argument to TRUE instructs the formula to skip entirely blank cells within your selected range.
Why is my nested FILTER function outputting 0 for blank cells?
When the FILTER function encounters an empty cell in the source range that matches your criteria, it defaults to returning a 0. To prevent this, ensure your source text range contains no unintended blank values, or handle it by adding an IF statement within the formula.
Does TEXTJOIN work across different worksheets?
Yes, TEXTJOIN can reference cells on different sheets. You must include the sheet name followed by an exclamation mark before the cell range, such as 'Master Grid'!$AL187:$AL288.




