To find the minimum value based on one or more criteria in Excel, use the MINIFS function. The basic syntax is =MINIFS(min_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...). This allows you to isolate a specific subset of data—such as the lowest sale price for a specific product category—without having to manually filter your spreadsheet.

What You'll Need

  • A computer with Microsoft Excel installed (Office 365, Excel 2019, or newer for the MINIFS function).
  • A dataset containing a range of numerical values you wish to analyze.
  • A corresponding range of categories or labels (the criteria) that align with your numerical data.

Step-by-Step

Depending on your version of Excel, you will use either the modern MINIFS function or an older array formula. Follow these steps to implement both methods.

Method 1: Using the MINIFS Function (Excel 2019 or Office 365)

  1. Organize Your Data: Ensure your data is in a clean table format. For example, Column A should contain "Product Name," Column B should contain "Region," and Column C should contain "Price."
  2. Select Your Target Cell: Click on the cell where you want the result to appear.
  3. Enter the Function Start: Type =MINIFS( into the cell.
  4. Define the Min_Range: Select the range of cells containing the numbers you want to find the minimum of. In our example, this would be the Price column (e.g., C2:C100). Type a comma to move to the next argument.
  5. Define the Criteria_Range1: Select the range of cells that Excel should check for your condition. If you want to find the minimum price for a specific region, select the Region column (e.g., B2:B100). Type a comma.
  6. Specify the Criteria1: Enter the specific value you are looking for. You can type the text in quotes (e.g., "North") or click on a cell that contains the region name.
  7. Add Additional Criteria (Optional): If you need to filter by both Region and Product, repeat the process by selecting another range (e.g., A2:A100) and specifying another criterion (e.g., "Widget").
  8. Close and Execute: Type the closing parenthesis ) and press Enter.

Method 2: Using an Array Formula (Excel 2016 and Older)

Older versions of Excel do not have the MINIFS function. Instead, you must combine MIN and IF.

  1. Start the Formula: Type =MIN(IF( into your target cell.
  2. Set the Condition: Define the criteria range and the condition. For example: B2:B100="North".
  3. Define the Value Range: Add a comma, then select the range of numbers to evaluate (e.g., C2:C100).
  4. Close the Formula: Type the closing parentheses )).
  5. Execute as an Array: This is the most critical step. Do not just press Enter. Instead, press Ctrl + Shift + Enter. Excel will automatically wrap the formula in curly braces { }, indicating it is an array formula.

Common Mistakes

When working with conditional minimums, users often encounter errors due to syntax or data formatting. Here are the most frequent pitfalls:

  • Mismatched Range Sizes: In MINIFS, the min_range and all criteria_range arguments must be the exact same size. If your min_range is C2:C100 but your criteria_range is B2:B50, Excel will return a #VALUE! error.
  • Forgetting Quotes for Text: When entering criteria directly into the formula, text must be enclosed in double quotes. =MINIFS(C2:C100, B2:B100, North) will result in a #NAME? error because Excel thinks "North" is a named range. It must be "North".
  • Using Enter instead of Ctrl+Shift+Enter: In older versions of Excel, using a standard Enter key for a MIN(IF(...)) formula will often return the minimum of the entire range, ignoring the IF condition entirely, or return a #VALUE! error.
  • Including Header Rows: If you select the entire column (e.g., C:C) including the header "Price," Excel usually handles it, but if the header is accidentally treated as a number or if there are non-numeric values in the range, it can cause unexpected results.

Tips

To make your "Min If" formulas more powerful and flexible, try these professional techniques:

  • Use Cell References: Instead of typing "North" inside the formula, point the formula to a cell (e.g., E1). This allows you to change the region in cell E1 and see the minimum price update instantly without editing the formula.
  • Wildcards for Partial Matches: You can use a question mark ? to match a single character or an asterisk * to match a sequence of characters. For example, "*East" will find the minimum for "NorthEast" and "SouthEast."
  • Logical Operators: You can find the minimum value that is greater than a certain number. For example, to find the minimum price that is at least 10 dollars, use ">=10" as your criterion.
  • Named Ranges: If you use these formulas frequently, highlight your data and give it a name (e.g., name C2:C100 as "PriceList"). Your formula becomes =MINIFS(PriceList, RegionList, "North"), which is much easier to read and audit.

Troubleshooting

If your formula isn't returning the expected result, work through these checks in order:

1. Check for Zeroes: The MINIFS function treats 0 as a value. If your data contains zeroes that represent "missing data" rather than actual values, MINIFS will return 0. To avoid this, add a second criterion to exclude zeroes: =MINIFS(C2:C100, B2:B100, "North", C2:C100, ">0").

2. Verify Data Types: Ensure your numbers are actually stored as numbers. If they are stored as text, MINIFS will ignore them. You can check this by selecting the column and looking at the formatting dropdown in the Home tab; it should be "General" or "Number," not "Text." If they are text, use the "Text to Columns" feature to convert them.

3. Look for Hidden Spaces: If your criteria is "North" but your cell contains "North " (with a trailing space), the formula will not find a match and will return 0. Use the TRIM function to clean your data if you suspect this is the case.

4. Confirm Version Compatibility: If you see a #NAME? error, it is highly likely you are using an older version of Excel that does not support MINIFS. Switch to the MIN(IF(...)) array formula method described above.

Frequently Asked Questions

What happens if no cells meet the criteria?

If no cells match the criteria you have specified, the MINIFS function will return 0. This can be confusing if 0 is also a valid value in your dataset.

Can I use MINIFS with dates?

Yes. You can find the earliest date that meets a condition. Ensure your dates are formatted as date objects in Excel. You can use criteria like ">=1/1/2023" to find the minimum date within a specific year.

Is there a limit to how many criteria I can add?

The MINIFS function allows for up to 127 pairs of criteria ranges and criteria. In practice, most users rarely need more than three or four.

Does MINIFS ignore empty cells?

Yes, MINIFS ignores empty cells within the min_range. However, it will include cells that contain a 0.

Can I use MINIFS to find the minimum based on a cell being blank?

Yes. To find the minimum value where a corresponding cell is blank, use "" as your criterion. For example: =MINIFS(C2:C100, B2:B100, "").