How to Fix Excel MAX and MIN Functions Returning Zero
Question details
The MAX and MIN functions in Excel are returning a result of zero rather than calculating the highest or lowest numeric values within the specified range.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Attempting to find the highest or lowest values in a dataset using the standard MAX or MIN functions.
- Observed behavior
- The formula unexpectedly returns '0' because the numbers referenced in the cells are formatted or stored as text strings, which mathematical functions ignore.
Verify that your selected data range actually contains numbers and isn't entirely blank. Additionally, check if the numbers in your cells are aligned to the left side, which is a common indicator that Excel is treating them as text.
Convert Text to Numbers Using Paste Special Multiply
This method forces Excel to convert text-formatted numbers into actual numeric values by mathematically multiplying them by 1, instantly fixing the MAX and MIN calculation errors.
When numbers are imported from external databases or copied from web pages, they often carry hidden text formatting. Excel's Paste Special feature provides a bulk-conversion method that works flawlessly across large datasets.
Enter the number 1 in any empty cell formatted as General or Number. Select that cell and press Ctrl+C to copy it.
Highlight all the cells containing the numbers that your MAX or MIN formulas are referencing.
Right-click the highlighted range and select 'Paste Special' from the context menu.
In the Paste Special dialog box, locate the Operation section, select 'Multiply', and click 'OK'.

Use the Built-in Error Checking Tool
If Excel recognizes that your numbers look like text, it will display a small green triangle in the cell corner, allowing you to convert them with a single click.
Easily Convert Text to Numbers and Calculate Data with WPS Spreadsheet
WPS Spreadsheet provides flawless compatibility with Excel formulas like MAX and MIN. It includes smart error-checking tools that quickly identify and fix numbers stored as text so your calculations are always accurate.
- 1. Open your data file in WPS Spreadsheet: Launch WPS Office and open the workbook containing the formula errors.
- 2. Select the text-formatted data: Highlight the cells containing the numbers that have green error indicators in the corners.
- 3. Convert to numbers automatically: Click the warning icon beside the selection and choose 'Convert to Number'.
- 4. Verify your MAX and MIN formulas: Your existing =MAX() and =MIN() functions will automatically update and return the correct numerical results.

Frequently Asked Questions
Why do numbers get stored as text in Excel?
This commonly occurs when data is imported from external sources like CSV files, web pages, or accounting databases. It also happens if a user types an apostrophe (') before a number or if the cell format was set to 'Text' before the numbers were typed.
Can I use a formula to convert text to numbers?
Yes, you can use the VALUE function. Creating a new column and entering a formula like =VALUE(A1) will convert a text string in cell A1 into a numeric value. You can then reference this new column with your MAX or MIN functions.
Do other Excel functions ignore text values like MAX and MIN do?
Yes, many standard mathematical and statistical functions, including SUM and AVERAGE, will ignore numbers stored as text. This is why these formulas might unexpectedly return zero or an artificially low result.
How can I visually identify numbers stored as text?
By default, Excel aligns numbers to the right and text to the left. If your numbers are left-aligned without custom formatting, or if they have a tiny green triangle in the top-left corner, they are likely being treated as text.




