Formula Errors

Fix TEXTJOIN When MIN Returns Zero in Excel

Nimra MalikNimra Malik Nov 10, 2026 869 views

Question details

The user needs to fix a TEXTJOIN formula error caused by the MIN function treating blank cells in an entire column reference as zero.

Fix TEXTJOIN When MIN Returns Zero in Excel
Product
Excel
Device & OS
not provided
Scenario
Extracting or combining text based on a minimum value condition where entire columns are referenced in the formula.
Observed behavior
The TEXTJOIN function fails or behaves unexpectedly because millions of unused blank cells match the zero minimum value, overloading the function's character limit.
Before you start

Ensure that you have identified the exact rows containing your data and verify if there are any blank cells within your dataset that might be inadvertently evaluated as zero.

Solution 1Recommended

Reference Specific Data Ranges Instead of Entire Columns

Limiting your formula to the exact data range prevents the spreadsheet from evaluating millions of blank cells as zeros, improving performance and accuracy.

Referencing entire columns (like C:C) forces the program to check over a million rows. When doing this with the MIN function, empty cells are evaluated as 0. Limiting the range resolves this logic flaw natively.

1
Select the Destination Cell

Click on the specific cell where you want the TEXTJOIN result to appear.

2
Input the Restricted Range Formula

Type the formula using specific row numbers instead of column letters. For example: =TEXTJOIN(" - ",TRUE,IF(C2:C8=MIN(C2:C8),B2:B8,""))

3
Evaluate the Array

Press Enter to calculate the result. If you are using an older version of the software that does not support dynamic arrays, press Ctrl + Shift + Enter instead.

Reference Specific Data Ranges Instead of Entire Columns
Performance Boost: Restricting the range significantly speeds up spreadsheet calculation times by ignoring over a million empty rows.
Powerful Spreadsheet Processing

Combine and Evaluate Text Flawlessly with WPS Spreadsheet

WPS Spreadsheet fully supports advanced array formulas, including TEXTJOIN and MIN, allowing you to process complex logical conditions on large datasets without performance lags.

  1. 1. Download and Install: Download and install WPS Office for free, then open your workbook in WPS Spreadsheet.
  2. 2. Select the Target Cell: Click on the cell where you want to output the dynamically joined text.
  3. 3. Enter the Formula: Type your optimized formula using specific range references (e.g., =TEXTJOIN(",", TRUE, IF(C2:C100=MIN(C2:C100), B2:B100, ""))).
  4. 4. Calculate Instantly: Press Enter to instantly calculate the results with WPS Spreadsheet's high-speed processing engine.
Fully compatible with Microsoft Excel formulas and functions (.xlsx format).Fast calculation engine prevents freezing when handling complex array formulas over entire columns.Free to use with a lightweight installation and familiar user interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the MIN function return zero when referencing an entire column?

When referencing entire columns (like C:C), the MIN function evaluates completely blank cells as zero. If your actual minimum numerical value is greater than zero, the formula will incorrectly return 0 because it considers the blank cells to be the lowest value.

What is the character limit for the TEXTJOIN function?

The TEXTJOIN function can process and output a maximum of 32,767 characters in a single cell. If you reference an entire column full of blank cells that are incorrectly treated as zeros, TEXTJOIN will attempt to join millions of matches, easily exceeding this limit and resulting in a #VALUE! or #CALC! error.

Do I need to press Ctrl+Shift+Enter for these formulas?

If you are using a modern version of Excel (Microsoft 365) or WPS Office that supports dynamic arrays, you only need to press Enter. For older versions, combining IF and MIN inside TEXTJOIN requires pressing Ctrl+Shift+Enter to explicitly create an array formula.