How to Fix an Excel MAX Formula Returning an Incorrect Result
Question details
The user needs to fix a MAX formula in Excel that is calculating an unexpected value or returning zero.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Using the MAX function to extract the highest value from a dataset or range of cells.
- Observed behavior
- The MAX formula calculates an incorrect result or unexpectedly returns 0, often due to formatting issues, syntax errors, or numbers stored as text.
Ensure that the cells referenced in your MAX formula actually contain the data you intend to evaluate, and verify that there are no hidden rows or filtered data skewing your expectations.
Convert Numbers Stored as Text to Numeric Values
If your MAX function is returning 0 unexpectedly, the range likely contains numbers stored as text, which the MAX function ignores.
The MAX function is designed to only evaluate numerical data. If data is imported from another system or manually entered with specific formatting, Excel might treat the numbers as text strings.
Highlight the range of cells that your MAX formula is evaluating.
Look for a small green triangle in the top-left corner of the cells, which indicates a number is stored as text.
Click the yellow warning icon that appears next to the selected cells and choose 'Convert to Number' from the dropdown menu.
If the warning icon does not appear, keep the range selected, go to the Data tab, click 'Text to Columns', and immediately click 'Finish' to force Excel to recognize the values as numbers.

Correct Formula Syntax and Adjust Cell Formatting
Ensure the formula is written correctly with an equals sign and the result cell is formatted to display numbers properly.
Easily Calculate Maximum Values with WPS Spreadsheet
WPS Spreadsheet provides intuitive formula tools and automatic error checking to help you find maximum values without running into formatting errors. It correctly handles various data types and proactively warns you of formatting mismatches.
- 1. Open your spreadsheet: Launch WPS Office and open your workbook in the WPS Spreadsheet application.
- 2. Enter the MAX function: Select the cell where you want the maximum value to appear, type =MAX( and highlight the target range.
- 3. Press Enter to calculate: Press the Enter key. WPS Spreadsheet will automatically close the parenthesis and calculate the highest value.
- 4. Fix formatting warnings: If the result is 0, highlight the source data, click the exclamation mark warning icon, and select 'Convert to Number'.

Frequently Asked Questions
Why does my MAX formula return 0 when there are positive numbers in the range?
This typically happens when the positive numbers in your range are formatted or stored as text. The MAX function ignores text strings, so if it finds no recognized numeric values, it returns 0. You need to convert these text values to standard numbers.
Does the MAX function ignore blank cells?
Yes, the standard MAX function ignores blank cells, logical values (TRUE/FALSE), and text. However, if a cell contains a hardcoded 0, it will be evaluated and could be returned as the maximum if all other numbers are negative.
Can I find the maximum value based on a specific condition?
Yes, if you need to find a maximum value that meets specific criteria (like the highest sales in a specific region), you can use the MAXIFS function instead of the standard MAX function.
Why is my formula displaying as text instead of calculating a result?
If you see the literal text '=MAX(A1:A10)' written in the cell instead of the numerical result, the cell is likely formatted as 'Text'. Change the cell format to 'General', then double-click the cell and press Enter to force Excel to calculate it as a formula.




