MAX Function - Excel & Sheets
Master the MAX function to find the largest value in your data. Learn syntax, examples, error handling, and best practices for Excel and Google Sheets.




=MAX(number1, [number2], ...)
Practical Examples
Basic Sales Maximum
Find the highest sales value from a monthly sales report
Multiple Range Maximum
Compare maximum values across different product categories
Conditional Maximum with Array Formula
Find maximum value that meets specific criteria
Date Maximum for Timeline Analysis
Find the most recent date in a project timeline
Dynamic Maximum with OFFSET
Calculate maximum of last N values in growing dataset
Common Errors and Solutions
MAX returns #VALUE! error
One or more arguments contain text that cannot be converted to numbers, or there's an error in a referenced cell
1. Check all referenced cells for text values 2. Use ISNUMBER to identify non-numeric cells 3. Clean data using VALUE() or TEXT() functions 4. Remove any spaces or special characters 5. Ensure no error values in the range
Always validate data types before applying MAX function
Example:
Excel doesn't recognize the function
Typically occurs due to typos in the function name or issues with regional settings
1. Verify spelling: MAX not MX or MAXIMUM 2. Check language settings in Excel 3. Ensure no spaces before equals sign 4. Verify formula syntax matches your region's list separator
Use Formula AutoComplete to avoid typos
MAX returns 0 when data exists
All cells in the range are either empty, contain text, or negative numbers with hidden positive values expected
1. Check if cells contain text formatted as numbers 2. Look for hidden rows or filtered data 3. Verify range references are correct 4. Use MAXA if you want to include logical values 5. Check cell formatting isn't hiding values
Use COUNT or COUNTA to verify numeric data exists in range
Example:
Invalid cell reference
Referenced cells have been deleted or the formula was copied incorrectly
1. Check if any referenced ranges were deleted 2. Verify sheet names in cross-sheet references 3. Ensure named ranges still exist 4. Re-select the data range 5. Use absolute references when copying formulas
Use absolute references ($A$1) for fixed ranges
Advanced Tips and Techniques
Use LARGE instead of MAX when you need the top N values. `=LARGE(A:A, 1)` equals MAX, while `=LARGE(A:A, 2)` gives the second-largest value. Perfect for ranking and percentile analysis.
In Excel 2019+ and Google Sheets, use MAXIFS for cleaner conditional maximum formulas. It's faster and more readable than array formulas with IF.
MAX includes hidden and filtered rows in its calculation. Use SUBTOTAL(104, range) or AGGREGATE(4, 5, range) if you need to find maximum of visible cells only.
For datasets over 100,000 rows, limit range references (B2:B100000) instead of entire columns (B:B) to improve calculation speed by up to 40%.
MAXA treats TRUE as 1 and FALSE as 0, while MAX ignores logical values entirely. Use MAXA when logical values should be considered in the comparison.
Need Help with MAX Function - Excel & Sheets?
Stop struggling with formula syntax. Use AskFormulas to generate validated formulas instantly with our AI-powered tool.
Example Excel formula:
Related Formulas
Master the AVERAGE function with practical examples and error solutions. Learn to calculate mean values and analyze data efficiently in Excel and Sheets.

Master MAXIFS function with examples and error solutions. Find maximum values based on multiple criteria for data analysis in Excel and Sheets.

Master the MIN function to find minimum values in Excel and Google Sheets. Learn examples, handle errors, and optimize data analysis with this guide.

Master the ROUND function to round numbers to specified decimal places with practical examples and error solutions for Excel and Google Sheets.
