How to Use Excel's MINIFS Function: Finding the Minimum Value by Condition

Explain the syntax, version requirements, and a complete example of the Excel MINIFS function for finding the minimum value under a condition, and describe how to verify the results, so that readers can follow the steps and find the minimum value that meets the conditions in their own spreadsheets.

Key Points of This Article

  • The first argument of MINIFS is the range from which to take the minimum value; after it, condition range and condition are written in pairs, and there can be one or more conditions.
  • Conditions can be written directly as text or numbers, or they can reference cells, so the formula does not need to be changed when the conditions change.
  • When no records meet the conditions, MINIFS returns 0; this 0 does not necessarily represent a true minimum value and needs to be verified separately.
  • MINIFS requires Excel 2019, Microsoft 365 subscription Excel, or Excel 2021 or later; older versions will display an error.

When doing sales statistics, cost accounting, or score analysis, you often need to answer questions like these: What is the lowest unit price in the East China region? What is the smallest reimbursement amount in a certain department? If you only know how to use MIN, you must first filter the data manually and then read the value, and everything has to be redone whenever the table is updated. The Excel function MINIFS is designed for exactly this kind of requirement, "filter by condition first, then take the minimum value," and a single formula can accomplish it.

This article is written for readers who often organize data in Excel but are not yet familiar with MINIFS. After reading it, you will know how to write MINIFS, what each argument represents, how to add multiple conditions, and how to judge whether the result is reliable. The example in the article is a sales record table of about 30 rows, which you can follow directly in your own spreadsheet.

How do I use MINIFS to find the minimum value based on conditions? One-sentence conclusion

Using the MINIFS function: the first argument is the range of numeric values from which you want the minimum. The following arguments come in pairs, each pair being a "criteria range" and its "criteria". Write as many pairs as you have conditions. The formula will look only at the records that meet all of the conditions and return the minimum value among them.

Your situationRecommended PracticesCause
Filter by just one column, for example, to view only a certain region.Write a set of conditions, i.e., MINIFS(value range, condition range, condition)Simple grammar, intuitive results
Meeting two or three conditions at the same time, for example region plus productFor each condition, write one set of "criteria range, criterion".Multiple conditions are connected by AND; all of them must be satisfied.
Conditions change frequently, for example switching to a different region every day.Put the condition in a cell and reference that cell in the formulaChanging the cell contents is enough to update the result; the formula does not need to be modified.
Need to find the maximum value subject to conditionsMAXIFS with the same syntaxParameter structure is the same, only the direction is opposite
The data is in tables within scanned images or PDF files.Convert the table to Excel first, then calculate.MINIFS can only calculate over cell ranges in a table.

Before You Begin: Confirm These Points First

1. Whether your Excel version supports MINIFS. MINIFS is a newer function and requires Excel 2019, Microsoft 365 (subscription Excel), or Excel 2021 and later. In older versions, entering it usually causes an error such as #NAME? in the cell. If you are unsure of your version, enter a simple test formula in a blank cell to see whether it calculates correctly.

2. Whether the data is a clean table. The ideal structure is one record per row, with the first row as the header, and no merged cells or blank rows in between. Merged cells cause rows and columns to misalign, which easily leads to errors.

3. Whether the numbers in a numeric column are real numbers. Numbers copied from web pages, PDFs, or other systems are often stored as text. They look like numbers in the cell, but they are left-aligned. MINIFS ignores text, so the result may be larger than expected, or it may return 0.

4. The condition range and the value range must have the same number of rows. For example, if the value range is C2:C31 (30 rows), the condition range must also be 30 rows, such as A2:A31. If the two ranges differ in size, the formula will return an error.

5. Decide in advance how to handle "no match." If no record meets the criteria, MINIFS returns 0. In a report, 0 may be misread as "the minimum is 0," so you should decide beforehand whether to signal "no data" in some other way.

Step by step: Using MINIFS to find the lower unit price for a region

Suppose column A of the table is region, column B is product, and column C is unit price, with data in rows 2 to 31 and headers in row 1. The example below calculates the minimum unit price for the "East China" region.

  1. Check the header and data range. Confirm that A1 to C1 are Region, Product, and Unit Price respectively, and that the data lies between A2:C31 with no blank rows in between.
  2. In an empty cell (for example E2), type MINIFS and open the parenthesis. As you type, Excel will display a parameter tooltip to help you confirm what each position should contain.
  3. For the first argument, select the range from which to take the minimum value, that is, the unit price column C2:C31. It determines which column's values the formula ultimately returns.
  4. For the second argument, select the criteria range A2:A31, which is the region column. For the third argument, enter the criterion "East China"; wrap it in English or Chinese quotation marks, or change it to reference a cell containing "East China", for example E1.
  5. Type the closing parenthesis and press Enter. E2 will display the minimum unit price for the East China region.
  6. To add a condition, such as looking only at the product "TV", continue appending another pair of "criteria range, criterion" inside the parentheses, written as B2:B31,"TV". Both sets of conditions must be met at the same time for a value to be included in the result.
  7. When copying the formula downward, change the range addresses to absolute references, such as $C$2:$C$31 and $A$2:$A$31, to prevent the referenced ranges from shifting after copying.

In this example, comparison operators can also be used in the criteria. For instance, to find the minimum value among records whose unit price is not lower than a certain threshold, the criteria can be written as ">="&E1, meaning greater than or equal to the value in E1. The threshold can be changed simply by entering the value directly in cell E1. When using wildcards in criteria, the asterisk () represents any number of characters and the question mark (?) represents any single character. For example, "华" can match all regions beginning with "华".

Verify item by item after completion

After the official calculation produces its results, do not use them directly. It is recommended to check them item by item using the checklist below.

Inspection itemHow do you see it?What should I do if I have a problem?
Is the result 0?Possibly means that no records met the conditionUse COUNTIFS to count the rows that meet the criteria. If the result is 0, there really is no match. Otherwise, check whether the criteria are written incorrectly.
The results are consistent with the manual screening.Use the filter feature to keep only the rows that meet the condition, then check whether the minimum values are the same.When there is a mismatch, check whether the region name contains extra spaces, or whether full-width and half-width characters are mixed.
Is the value text?Is the cell left-aligned, or is there an apostrophe before or after the number?Convert to numbers using the Text to Columns feature or by multiplying the data by 1, then recalculate.
Are the row counts of the regions consistent?Check the start and end row numbers of the two ranges in the formulaUniformly change to the same line number range
Does the citation shift after copying?After copying down or to the right, check the range addresses in the formula.Add the $ sign to the range to fix it as an absolute reference

If the data comes from a PDF, also watch out for recognition errors. If the table is a scanned image, you can first run OCR with the PDF editor in the OmniDoc desktop client, then export to Excel, and then calculate with MINIFS. Numbers recognized by OCR may contain errors, so key data should still be checked one by one against the original document.

📊 Core Comparison

There are four common methods for finding a minimum under constraints, each suited to different situations.

MethodVersion requirementsWriting difficultySuitable scenarios
MINIFSExcel 2019 and aboveLow, one formula to finishMinimizing a function subject to one or more everyday conditions
MIN combined with IF array formulaThe old version is still usable.Gao, I need to confirm this in array form.Needed for compatibility with older versions, or when the conditions are more complex
Pivot tableGeneralIn the middle, you need to drag the fieldsSummarize the minimum value across multiple groups at once
After filtering, check the status barGeneralLowJust a one-time look at the result; the formula doesn't need to be kept.

If your file needs to open in older versions as well, MINIFS is not the right choice; if you need it to be updated regularly with results that change automatically, MINIFS is more reliable than manual filtering.

❓ Frequently Asked Questions (FAQ)

1. What is the difference between MINIFS and MIN?

MIN can only take the minimum over an entire range or a set of cells, and it cannot apply conditions. MINIFS first filters records by criteria and then takes the minimum only among the values that meet those criteria, which makes it suitable for grouped statistics.

2. Why does #NAME? appear after I type MINIFS?

This usually means your version of Excel is older and doesn't recognize the MINIFS function. Please check whether your version is Excel 2019, Microsoft 365 (subscription) Excel, or Excel 2021 or later. If your version is correct, also check that the function name is spelled correctly.

3. Can wildcards be used in conditions?

Yes. The asterisk () matches any number of characters, and the question mark (?) matches any single character. For example, the criterion "华" can match regions starting with "华", such as "华东" and "华北". Note that wildcards are only effective for text criteria.

4. Which function should be used to find the maximum value that satisfies a condition?

Using MAXIFS has exactly the same parameter structure as MINIFS; the only difference is that it returns the maximum value. The two are often used together, for example to calculate both the minimum and maximum unit price for a given region at the same time.

📝 Summary

The core of the MINIFS function is "filter by condition first, then take the minimum value." The syntax only requires entering the value range, the condition range, and the condition in turn. Before you start, confirm your Excel version and data format; after calculating, verify the result against the filtered data, and the Excel function formula MINIFS will reliably help you complete the task of finding the minimum value under conditions.

Open OmniDoc and process your spreadsheet file

Updated 2026-11-29