How to Minimum If Multiple Criteria in Excel
Learn multiple Excel methods to minimum if multiple criteria with step-by-step examples and practical applications.
How to Minimum If Multiple Criteria in Excel
Why This Task Matters in Excel
In virtually every data-driven role—finance, sales, supply-chain, research, operations—you will eventually be asked one deceptively simple question: “What is the lowest number that meets all these conditions?” Maybe procurement wants to know the cheapest supplier that also delivers within five days and meets a quality score, or HR needs the smallest overtime hours among employees in a specific department during a specific quarter. Whatever the context, the underlying analytical need is identical: extract the minimum value from a dataset only where several criteria are simultaneously true.
Without an efficient, reliable way to answer that question, analysts risk wasting time on manual filtering, copying, and eyeballing values—an approach that is error-prone and does not scale past a few dozen rows. Incorrect minimum calculations can lead to bad decisions, from overpaying vendors to underestimating project risk, ultimately costing money and reputational damage. Mastering a repeatable technique for minimum-if-multiple-criteria protects data integrity and keeps analysis workflows fast and auditable.
Excel offers several functions you can string together for this purpose—MINIFS, AGGREGATE, MIN with logical tests, and even PivotTables—and the right choice depends on version compatibility, performance, and complexity. In Office 365 or Excel 2019+, MINIFS is the industry-standard because it was built exactly for this task. Earlier versions require array or helper-column solutions, and very large models might benefit from database-style queries in Power Query or Power Pivot. Whichever path you choose, learning to combine conditions efficiently connects directly to other core Excel skills: dynamic reports, interactive dashboards, scenario analysis, and automated KPIs.
In short, knowing how to calculate a conditional minimum is fundamental. It unlocks smarter dashboards, speeds up daily decision-making, and forms the backbone of many advanced analytics workflows.
Best Excel Approach
For most users on modern Excel versions, the MINIFS function is the best-of-breed solution. It is concise, readable, and does not require special keystrokes. MINIFS allows you to supply one “min_range” plus one or more “criteria_range / criteria” pairs, evaluating all criteria with an implicit AND logic. If any criterion fails, the row is excluded from the calculation.
Syntax:
=MINIFS(min_range, criteria_range1, criteria1, [criteria_range2], [criteria2], …)
- min_range – Cells containing numbers from which you want the minimum.
- criteria_range1 – The first range to test.
- criteria1 – The condition applied to criteria_range1 (text, number, expression, or cell reference).
- Additional pairs are optional and can be repeated up to 126 times.
Why MINIFS is usually best:
- Native support in Excel 2019, Excel 2021, and Microsoft 365—no array entry required.
- Handles multiple criteria elegantly without nested functions.
- Ignores empty cells automatically, preventing accidental zeros from skewing results.
- Readability means easier maintenance, audit, and hand-off to colleagues.
Alternative for legacy workbooks (<Excel 2019):
=MIN(IF((criteria_range1=criteria1)*(criteria_range2=criteria2),min_range))
This is an array formula (must be confirmed with Ctrl+Shift+Enter in legacy Excel). It remains useful when MINIFS is unavailable, but readability and ease-of-use are lower.
Parameters and Inputs
- All criteria_range arrays must be the same size and shape as min_range. Mismatched dimensions trigger
#VALUE!. - min_range must contain numeric data; text or logical values are ignored automatically by
MINIFSand treated as non-numeric in array formulas. - Criteria can be:
– Exact text:"East"
– Cell references:F2
– Relational operators concatenated with a value:">=100"
– Wildcards in text:"App*" - Leading/trailing spaces inside criteria cells count as part of the text—trim data beforehand to avoid mismatches.
- Date criteria should use real Excel dates or
DATE(year,month,day)functions to avoid regional misinterpretation. - Empty cells in any criteria range are ignored—if you need to treat blank as a valid criterion, add an explicit condition such as
"="&"". - When using the array-based fallback, remember to commit with Ctrl+Shift+Enter in non-365 versions; failing to do so returns a single value of the IF test rather than the min.
- If all rows are filtered out by the criteria,
MINIFSreturns0; the array method returns#NUM!. Wrap formulas insideIFERRORor custom logic if you expect this outcome.
Step-by-Step Examples
Example 1: Basic Scenario
Imagine a simple sales table:
| Region | Product | Units Sold | Cost per Unit |
|---|---|---|---|
| East | Widget | 120 | 13.50 |
| West | Widget | 140 | 12.95 |
| East | Gizmo | 85 | 10.75 |
| West | Gizmo | 92 | 11.10 |
| East | Widget | 200 | 13.20 |
Objective: Find the lowest cost per unit for “Widget” in the “East” region.
- Place the two criteria labels and inputs somewhere convenient, for instance:
- Cell [G2]: “Region” with [H2]: “East”
- Cell [G3]: “Product” with [H3]: “Widget”
- Enter the following formula in [H4]:
=MINIFS([D2:D6],[A2:A6],H2,[B2:B6],H3)
- Result: 13.20. Although 12.95 is the overall minimum, it belongs to “West” and is therefore excluded.
Why this works:MINIFSloops through rows 2-6, evaluating whether Column A equals “East” AND Column B equals “Widget.” Only rows 2 and 5 pass. Among their corresponding values in Column D, 13.20 is the smallest, so the function returns it.
Common variations:
- Add another criterion for Units Sold greater than 100: add
, [C2:C6], ">100"to the argument list. - Change criteria cells to drop-downs for an interactive dashboard.
Troubleshooting: If the result shows 0, confirm there are rows that pass all criteria. If not, encapsulate the formula:
=IFERROR(MINIFS(...),"No match")
Example 2: Real-World Application
Scenario: A logistics company tracks on-time delivery performance and transport costs for different carriers across multiple quarters. Data fields:
| Carrier | Quarter | Transit Mode | Delivery Days | Cost |
|---|---|---|---|---|
| Alpha | Q1-23 | Air | 3 | 1,800 |
| Beta | Q1-23 | Air | 4 | 1,700 |
| Beta | Q2-23 | Truck | 5 | 1,200 |
| Gamma | Q2-23 | Air | 2 | 2,200 |
| Alpha | Q2-23 | Truck | 3 | 1,400 |
| … | … | … | … | … |
Management wants to know the minimum cost for Air shipments in Q2-23 that had delivery days less than or equal to 3.
- Define criteria cells:
- [I2]: Quarter → [J2]: “Q2-23”
- [I3]: Transit Mode → [J3]: “Air”
- [I4]: Max Delivery Days → [J4]: 3
- Formula in [J6]:
=MINIFS([E2:E1000], [B2:B1000], J2, [C2:C1000], J3, [D2:D1000], "<=" & J4)
Result might be 2,200 (if that’s the lowest cost within the criteria). The formula scales across thousands of rows without additional complexity.
Why this solves a business problem:
- Transport managers can instantly see the lowest cost that still met stringent delivery times.
- Enables quick renegotiation with carriers: “We see Beta shipped Air, Q2-23, in 4 days for 1,700—our benchmark is 2,200 at 3 days, so there’s room for improvement.”
- By embedding the formula in a pivot-like summary sheet, analysts refresh the underlying data and results update automatically, saving hours compared with manual filtering.
Integration tips:
- Turn the data into an Excel Table (
Ctrl+T) so the formula uses structured references:=MINIFS(Table1[Cost], Table1[Quarter], J2, ...)—guarding against row insertions. - Combine with conditional formatting to highlight the record that matches the minimum cost.
Performance remarks: MINIFS is extremely fast, but if you have hundreds of thousands of rows and dozens of formulas, use one-time helper cells or aggregate the data in Power Query to avoid unnecessary recalculation.
Example 3: Advanced Technique
Edge case: You need the minimum unit price for products that meet multiple text criteria in one column (e.g., Product name contains “Widget” or “Gizmo”) and come from suppliers with an ISO certification flag of “Yes.” Additionally, the final figure must ignore promotional prices flagged separately.
Data columns:
| Product | Supplier | ISO Certified | Promo Price? | Unit Price |
|---|---|---|---|---|
| Widget A | Supplier1 | Yes | No | 12.90 |
| Gizmo X | Supplier2 | Yes | Yes | 9.50 |
| Widget B | Supplier3 | No | No | 11.75 |
| Gizmo Pro | Supplier2 | Yes | No | 10.60 |
Challenges:
- OR logic within one criteria set (Widget OR Gizmo).
- Exclude promotional prices.
- Must work in Excel 2016 (no
MINIFS).
Solution combines array logic and MIN:
=MIN(IF(((ISNUMBER(SEARCH("Widget", [A2:A100])) + ISNUMBER(SEARCH("Gizmo", [A2:A100])))>0) *
([C2:C100]="Yes") *
([D2:D100]="No"),
[E2:E100]))
Press Ctrl+Shift+Enter to confirm in pre-365 Excel. Explanation:
SEARCH("Widget", …)returns a number if “Widget” is found, error otherwise. Wrapping withISNUMBERyields TRUE/FALSE, which Excel coerces to 1/0.- Adding the two boolean blocks performs OR logic because any TRUE gives a total ≥1.
- Multiplying by the other boolean tests enforces AND logic.
- The
IFfunction returns the candidate prices; other rows become FALSE, whichMINignores.
Professional tips:
- On Office 365, wrap the same logic inside
FILTERthenMINto avoid array keystrokes and gain spill benefits. - For extremely large models, move the OR condition to a helper column with a simple formula like
=OR(ISNUMBER(SEARCH("Widget",A2)),ISNUMBER(SEARCH("Gizmo",A2)))to reduce calculation overhead.
Error handling: If every qualifying row has been flagged as promo, the formula returns 0. Wrap in IFERROR or test for MIN=0 and return a custom message such as “No non-promo prices.”
Tips and Best Practices
- Convert to Tables – Structured references keep formulas readable and automatically resize when you add rows.
- Store Criteria in Cells – Avoid hard-coding
"East"in formulas. Cell-based criteria make dashboards interactive and reduce typo risk. - Use Wildcards for Partial Matches – Supply
"*text*"in criteria to match substrings without complexSEARCHlogic whenMINIFSis available. - Trap Empty Results – Embed
IFERRORor compare the count of matches withCOUNTIFSto gracefully handle “no match” scenarios. - Optimize Array Formulas – Limit ranges to the used area, not entire columns, when applying the legacy
MIN(IF(...))pattern to keep recalculation times low. - Combine with INDEX/MATCH – Once you have the minimum value, use
INDEXwithMATCHto retrieve the corresponding record, creating end-to-end insights.
Common Mistakes to Avoid
- Mismatched Ranges – Supplying [A2:A100] for criteria and [B2:B200] for min_range triggers
#VALUE!. Always verify identical row counts. - Using Quotation Marks Incorrectly – Remember that numeric expressions need quotes in criteria:
">=100". Forgetting them returns#VALUE!. - Ignoring Hidden Promotional Zeros – Blank or zero values might become the accidental minimum. Filter out irrelevant rows with an explicit criterion like
">0". - Forgetting Ctrl+Shift+Enter – In legacy Excel, entering an array formula with Enter alone causes incorrect single-value outputs.
- Hard-coding Dates as Text – Criteria such as
"1/1/2023"could be treated as text depending on regional settings. UseDATE(2023,1,1)instead.
Alternative Methods
| Method | Pros | Cons | Best for |
|---|---|---|---|
MINIFS | Simple, readable, no array entry, many criteria | Requires Excel 2019 or 365 | Modern workbooks |
MIN(IF()) array | Works in older versions, flexible boolean logic | Requires Ctrl+Shift+Enter, less readable, slower | Legacy files, heavy custom logic |
AGGREGATE with option 15 | Can ignore errors without array entry | Syntax is cryptic; still needs helper boolean; pre-2010 lacks function | Large data where error values must be skipped |
| PivotTable + Value Filter | Zero formulas, visual summaries | Manual refresh; harder to embed in formulas | Exploratory analysis, executive reports |
| Power Query | Scales to millions of rows, joins and transforms | Requires load to data model; not a live formula | ETL tasks, recurring data imports |
When deciding, balance compatibility, performance, and maintainability. Migration tip: Wrap an old array formula in a named range, then replace with MINIFS when users upgrade—no need to rewrite reports.
FAQ
When should I use this approach?
Use conditional minimum formulas any time you require the smallest numeric value that meets multiple business rules—e.g., lowest cost, shortest lead time, smallest error rate—without manually filtering data.
Can this work across multiple sheets?
Yes. Point each range to an external sheet name, such as Sheet2!A2:A100. Ensure all criteria ranges remain the same size as min_range. In MINIFS, you cannot mix closed workbooks; all source sheets must be open.
What are the limitations?
MINIFS cannot perform OR logic directly across rows; you must combine criteria ranges or use multiple MINIFS and MIN the results. It also ignores logical TRUE/FALSE in min_range. For text minima, you must switch to MINA or different functions.
How do I handle errors?
Wrap formulas inside IFERROR to substitute messages like “No qualifying rows.” For array methods, consider AGGREGATE(15,6,…), where option 6 ignores error values automatically.
Does this work in older Excel versions?
MINIFS is unavailable before Excel 2019. Use the array alternative or upgrade. In Excel 2007/2010/2013/2016 you can still build robust solutions with MIN(IF()), but remember array entry and potential performance hits.
What about performance with large datasets?
- Limit ranges or convert to Excel Tables so formulas refer only to used rows.
- Use helper columns to avoid repeating heavy
SEARCHorLEFT/RIGHTfunctions inside array formulas. - Consider Power Query for pre-aggregating data or switch to the Data Model with DAX measures such as
MINX(FILTER(…),…)for multi-million-row scenarios.
Conclusion
Calculating a minimum based on multiple criteria is a foundational analytical skill. Mastering MINIFS or its legacy equivalents allows you to answer critical business questions instantly, eliminates manual filtering errors, and enhances dashboards and decision-making processes. As you integrate these techniques with structured references, helper columns, or advanced Power Query models, you will build faster, more accurate, and more maintainable Excel workbooks. Continue experimenting with dynamic criteria cells, array logic, and performance tuning to further sharpen your data-analysis toolkit.
Related Articles
How to Show the 10 Most Common Text Values in Excel
Learn multiple Excel methods to list the 10 most frequent text values—complete with step-by-step examples, business use cases, and expert tips.
How to Abbreviate Names Or Words in Excel
Learn multiple Excel methods to abbreviate names or words with step-by-step examples and practical applications.
How to Abbreviate State Names in Excel
Learn multiple Excel methods to abbreviate state names with step-by-step examples, professional tips, and real-world applications.