Fix Excel MAX Array Formula Returning 0 Instead of 1
Question details
A complex MAX formula returns 0 in the cell, even though manually evaluating it in the formula bar shows the correct result of 1.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Using nested functions like ISNUMBER and MID within a MAX function to evaluate an array of data.
- Observed behavior
- The cell displays 0, but highlighting the formula and pressing F9 calculates the expected value of 1. This inconsistency also appears in Excel for the web.
Ensure your formula syntax is completely correct and that the referenced cells actually contain the expected data before attempting to force an array calculation.
Convert to a Legacy Array Formula using Ctrl+Shift+Enter
For older versions of Excel and certain web configurations, complex formulas that process arrays must be explicitly confirmed as array formulas to calculate properly.
When a formula processes an array of data rather than a single value, standard Excel evaluation might only look at the first item in the array. If the first item doesn't meet the criteria, the MAX function may return 0. By committing it as an explicit array formula, the spreadsheet engine evaluates the entire array before outputting the final MAX value.
Select the cell containing your MAX formula and press F2 on your keyboard, or click directly into the formula bar.
Instead of pressing the standard Enter key, press Ctrl + Shift + Enter simultaneously. You will notice curly braces {} automatically appear around your formula.
Check the cell output. The worksheet will recalculate the array, and the cell should now accurately display 1 instead of 0.

Easily Manage Array Formulas with WPS Spreadsheet
WPS Office provides robust, out-of-the-box support for complex array formulas, ensuring accurate data analysis without calculation glitches.
- 1. Open your Workbook: Launch WPS Spreadsheet and open the file containing your problematic formulas.
- 2. Edit the Formula: Select the target cell and press F2 to activate edit mode.
- 3. Confirm as Array: Press Ctrl + Shift + Enter to lock in the array formula, immediately correcting the output from 0 to 1.

Frequently Asked Questions
Why does my formula evaluate correctly with F9 but show 0 in the cell?
Pressing F9 forces the spreadsheet to evaluate the highlighted portion of the formula in memory, which naturally handles array logic. However, unless the formula is committed to the cell with Ctrl+Shift+Enter, standard cell rendering may only process the first array element, returning 0.
Can I type the curly braces manually to make it an array formula?
No. Typing curly braces {} manually around your formula will convert it into a static text string, and it will no longer calculate. You must use the Ctrl+Shift+Enter keyboard shortcut to let the software apply the braces automatically.
Does this array formula issue happen in Excel for the Web?
Yes, Excel for the Web can sometimes struggle with legacy array functions depending on how the workbook was originally authored. Applying the Ctrl+Shift+Enter shortcut typically resolves the calculation error in the web version just as it does on the desktop.




