How to Fix the #NAME? Error in Excel TEXTJOIN Formulas
Question details
The user needs to resolve a #NAME? error occurring in a formula that combines TEXTJOIN and IF functions.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Combining data using TEXTJOIN and IF formulas on a frequently refreshed worksheet without losing performance.
- Observed behavior
- The formula returns a #NAME? error, and full-column array calculations cause severe slowness or unreliability in large data sets.
Ensure your version of Excel supports the TEXTJOIN function, which is available in Office 365, Excel 2019, and newer versions. If you are using an older version, the function will not be recognized, instantly resulting in a #NAME? error.
Limit Data Ranges and Use Structured Tables
Instead of using full-column references (like A:A) which can cause errors and slow down performance, convert your data to a dynamically expanding structured table.
Full-column array formulas force the spreadsheet to calculate over a million rows, leading to severe performance drops or errors, especially on frequently updated worksheets. A structured table resolves this by dynamically matching the exact data size.
Select any cell within your data range and press Ctrl + T on your keyboard. Ensure 'My table has headers' is checked, and click OK.
Click the cell containing your formula and update the range references to use table columns (e.g., Table1[Column A]) instead of full columns (e.g., A:A).
Press Enter to execute the formula. As new rows are added during hourly data refreshes, the table and the formula range will automatically expand.

Verify Function Names and Worksheet References
The #NAME? error frequently appears due to misspelled function names or incorrectly referenced worksheets in the formula.
Resolve Existing Errors in the Source Range
If the source columns being processed by the TEXTJOIN formula contain pre-existing errors, the formula may fail to evaluate correctly.
Use WPS Spreadsheet to Seamlessly Manage TEXTJOIN Formulas
WPS Spreadsheet fully supports advanced text functions like TEXTJOIN and dynamic arrays. You can easily combine text from multiple ranges and manage frequently refreshed data with optimal performance.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your .xlsx workbook containing the problematic formula.
- 2. Enter the TEXTJOIN formula: Select the target cell, type =TEXTJOIN(, specify your delimiter, set the ignore_empty rule to TRUE or FALSE, and highlight your text ranges.
- 3. Optimize the data range: Select your exact data boundaries rather than full columns (like A1:A5000 instead of A:A) to ensure optimal calculation speed, then press Enter.

Frequently Asked Questions
Why does TEXTJOIN return a #NAME? error in older versions of Excel?
The TEXTJOIN function was introduced in Excel 2019 and Office 365. If you open a workbook containing this formula in Excel 2016 or earlier, the application will not recognize the function name, instantly resulting in a #NAME? error.
Can I use entire columns like A:A in a TEXTJOIN formula?
While it is technically possible, using entire columns in array-like formulas forces the application to evaluate over a million rows. This can cause severe performance drops, workbook freezing, or unexpected errors. It is highly recommended to use exact ranges or structured tables instead.
How do I make my formula include new rows if I don't use full columns?
Convert your data into an Excel Table by selecting the data and pressing Ctrl + T. When you reference a Table column in your formula (e.g., Table1[ContactName]), the range will dynamically expand to include any new rows added during data refreshes.
Does WPS Office support the TEXTJOIN function?
Yes, WPS Spreadsheet fully supports the TEXTJOIN function. You can seamlessly open, edit, and save workbooks utilizing this formula without experiencing compatibility issues.




