Find the highest or lowest value that meets a condition with MAXIFS and MINIFS

Use MAXIFS to return the largest value and MINIFS to return the smallest value from a numeric range when one or more conditions must be met.

What the video covers

Show how to write MAXIFS and MINIFS formulas to return conditional maximums or minimums from a numeric range, including multiple criteria and common pitfalls.

Watch the video on YouTube

Step-by-step instructions

  1. Select the result cell
    Click the cell where you want the conditional maximum or minimum to appear.
  2. Enter the MAXIFS or MINIFS function
    Type =MAXIFS( to find the highest value, or =MINIFS( to find the lowest value.
  3. Specify the values range
    First argument: select the range that contains the numeric values you want to evaluate (the range to return the max/min from).
  4. Add one or more criteria ranges and criteria
    For each condition add a pair: select the range to test, type a comma, then enter the criterion in quotes (for example "Widget" or "100") or use a cell reference (e.g., B1). You can include multiple criteria pairs.
  5. Close and confirm
    Close the parenthesis and press Enter. Excel returns the highest or lowest number in the values range that meets all specified criteria.
  6. Example
    To get the max sale for product in column B with sale amounts in column C: =MAXIFS(C:C, B:B, "ProductName"). Use =MINIFS(…) the same way for the minimum.

Watch the video

Video thumbnail for Find the highest or lowest value that meets a condition with MAXIFS and MINIFS Play tutorial

Watch on YouTube

Why it matters

MAXIFS and MINIFS replace complex array formulas (MAX with IF) and make conditional max/min lookups simpler, easier to read, and less error-prone.

Check your result

The formula returns the expected numeric result (highest or lowest) for the selected condition(s). If it doesn’t, verify ranges align, criteria are correct, and referenced cells contain expected values.

Troubleshooting

• Ensure the sum/number range and each criteria range have the same size and orientation; mismatched sizes cause errors or wrong results. • If formula returns 0 or unexpected result, confirm the data type is numeric (not text). • For text criteria, use exact text in quotes or a cell reference; use wildcards (* or ?) with comparisons like "Jo*". • If no values match, MAXIFS/MINIFS return 0 (or an error in older Excel versions); wrap with IFERROR or check criteria logic. • For logical conditions include the operator inside quotes (e.g., "100") or concatenate a cell reference: "" & A1.