How to Use MAXIFS Function
Learn to use MAXIFS to find the maximum value in a range based on multiple criteria. This function returns the largest number that meets all your specified conditions, ideal for analyzing datasets where you need conditional maximum values like highest sales by region or best performance in a category.
Why This Matters
MAXIFS saves time analyzing large datasets by automatically finding conditional maximums without manual filtering or sorting. It's essential for business intelligence, sales analysis, and performance reporting.
Prerequisites
- •Basic understanding of Excel functions and cell references
- •Familiarity with comparison operators (=, >, <, etc.)
- •Knowledge of range selection and data organization
Step-by-Step Instructions
Prepare Your Data
Organize data in columns with headers; ensure the maximum value column and criteria columns are clearly defined with no blank cells in your ranges.
Click on Target Cell
Select the cell where you want the result to appear, typically in a summary area below or beside your data.
Enter MAXIFS Formula
Type =MAXIFS(max_range, criteria_range1, criterion1, [criteria_range2, criterion2], ...) replacing placeholders with your actual cell ranges and conditions.
Define Your Criteria
Specify one or more criteria: for example, =MAXIFS(D:D, A:A, "Sales", B:B, ">10000") finds the maximum in column D where column A equals "Sales" and column B is greater than 10000.
Press Enter and Verify
Press Enter to execute the formula; verify the result matches your expected maximum by manually checking your data against the criteria applied.
Alternative Methods
Using Array Formulas with MAX and IF
Use =MAX(IF(criteria, value_range)) as an array formula (Ctrl+Shift+Enter) for older Excel versions that don't support MAXIFS.
Combining FILTER and MAX
In Excel 365, use =MAX(FILTER(max_range, criteria_range=criterion)) for dynamic, flexible filtering with conditional maximum.
Tips & Tricks
- ✓Use absolute references ($ signs) when copying formulas across cells to prevent range shifts.
- ✓Test with a small dataset first to ensure your criteria logic is correct before applying to large datasets.
- ✓Use wildcards like "*" in criteria to match partial text values (e.g., "Sales*" matches "Sales_North").
Pro Tips
- ★Combine MAXIFS with other functions like MATCH or INDEX to return entire rows matching maximum conditions.
- ★Use named ranges in MAXIFS for cleaner, more readable formulas that are easier to maintain.
- ★Stack multiple MAXIFS formulas in a helper column to rank all matching values, not just the maximum.
Troubleshooting
Ensure MAXIFS is available in your Excel version (2016+); if using older Excel, switch to array formulas with MAX and IF instead.
Check that your criteria match actual data values exactly (case-sensitive for some comparisons); use wildcards or adjust comparison operators.
Verify no blank cells exist in your ranges and criteria are logically correct; use the AND logic carefully with multiple criteria.
Related Excel Formulas
Frequently Asked Questions
Can MAXIFS work with text criteria?
How many criteria can MAXIFS handle?
What's the difference between MAXIFS and MAX with IF?
This was one task. ElyxAI handles hundreds.
Sign up