How to Fix #VALUE! Error in Excel LARGE and IF ISNUMBER Formulas
Question details
The user's complex array formula combining LARGE, SMALL, INDEX, IF, and ISNUMBER is returning a #VALUE! error in a specific workbook, even though the formula syntax is correct.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Calculating metrics based on the largest and smallest numeric entries within a row using a nested array formula.
- Observed behavior
- The formula unexpectedly returns a #VALUE! error instead of the correct calculation, likely due to data inconsistencies, text formatting, or array evaluation issues.
Ensure that the referenced cells contain actual numbers and not numbers stored as text, as hidden text values or spaces will disrupt mathematical operations in array formulas.
Wrap the Formula in IFERROR and Verify Array Execution
Use the IFERROR function to catch missing numeric values and ensure the formula is executed correctly as an array to prevent #VALUE! errors.
In older versions of Excel, complex nested functions that evaluate arrays require special keystrokes to process correctly. Additionally, using IFERROR prevents the entire calculation from breaking if the specified array cannot locate the expected numerical data.
Click on the cell that is currently displaying the #VALUE! error to activate it.
Modify the formula in the formula bar to include IFERROR. For example: =IFERROR(INDEX(B7:K7,1,LARGE(IF(ISNUMBER(B7:K7),COLUMN(B7:K7)-COLUMN(B7)+1),1))/INDEX(B7:K7,1,SMALL(IF(ISNUMBER(B7:K7),COLUMN(B7:K7)-COLUMN(B7)+1),1))-1,"")
If you are using an older version of Excel (pre-Office 365), press Ctrl + Shift + Enter instead of just Enter. This tells Excel to evaluate the formula as an array, adding curly brackets {} around it.

Convert Numbers Stored as Text
Identify and convert any numbers stored as text within your data range, which is the most common cause of mathematical errors in Excel.
Easily Manage Complex Formulas with WPS Spreadsheet
WPS Spreadsheet provides powerful support for complex array formulas, including LARGE, SMALL, and ISNUMBER, ensuring seamless data analysis with an integrated error-checking tool to quickly resolve #VALUE! problems.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file displaying the #VALUE! error.
- 2. Edit the formula: Double-click the target cell and paste the updated IFERROR formula.
- 3. Calculate dynamically: Press Enter to let WPS Spreadsheet's modern calculation engine process the array instantly.
- 4. Trace remaining errors: Go to the Formulas tab and click 'Error Checking' to easily identify any remaining text-formatted cells.

Frequently Asked Questions
Why does my Excel array formula return a #VALUE! error?
A #VALUE! error typically occurs when a formula expects a number but encounters text, spaces, or an incompatible data type. In array formulas, it can also happen if the formula wasn't entered with Ctrl+Shift+Enter in older versions of Excel that lack dynamic array support.
Does the ISNUMBER function prevent #VALUE! errors?
ISNUMBER helps identify which cells contain valid numbers. However, if the surrounding mathematical operations (like division or subtraction) attempt to evaluate empty strings or text elements not filtered correctly by the larger array logic, a #VALUE! error can still occur.
How can I convert numbers stored as text to actual numbers in bulk?
Select the affected cells, click the yellow warning sign that appears, and select 'Convert to Number'. Alternatively, you can copy a completely blank cell, select your data range, right-click and choose 'Paste Special', select 'Add', and click OK to force the text into numerical values.




