Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets MINIFS Function: Guide and Examples

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The MINIFS function in Google Sheets returns the minimum value from a range of cells based on one or more specified criteria. Unlike the standard MIN function, which looks at every number in a range, MINIFS allows you to filter your data first—such as finding the lowest price for a specific product in a specific month—and then identifies the smallest number among those filtered results.

What You'll Need

  • A Google account with access to Google Sheets.
  • A dataset containing at least one column of numerical values (the range you want to find the minimum of).
  • One or more columns containing the criteria you want to filter by (e.g., dates, categories, or names).

Step-by-Step

  1. Organize Your Data: Ensure your data is arranged in a clean table format. For example, if you are tracking sales, you might have Column A for "Salesperson," Column B for "Region," and Column C for "Sale Amount." The MINIFS function requires that the criteria ranges and the minimum range are the same size and shape.
  2. Select Your Target Cell: Click on the cell where you want the result to appear.
  3. Start the Formula: Type =MINIFS( into the cell. This opens the function and prepares Google Sheets to receive the necessary arguments.
  4. Define the Min_Range: The first argument is the range of cells containing the numbers you want to evaluate. For our sales example, if the sale amounts are in cells C2 through C100, type C2:C100 followed by a comma.
  5. Set the First Criteria Range: The second argument is the range of cells you want to filter. If you want to filter by salesperson, and those names are in Column A, type A2:A100 followed by a comma.
  6. Define the First Criterion: Now, tell Google Sheets what to look for in that first criteria range. You can type a specific value in quotes, such as "John", or click on a cell that contains the name you are looking for (e.g., E2). Follow this with a comma if you have more criteria.
  7. Add Additional Criteria (Optional): You can repeat the "Criteria Range" and "Criterion" pattern up to 127 times. For example, to further filter by region (Column B), add B2:B100, "North".
  8. Close and Execute: Close the parentheses ) and press Enter. The formula should look something like this: =MINIFS(C2:C100, A2:A100, "John", B2:B100, "North").

Common Mistakes

One of the most frequent errors is a mismatched range size. If your min_range is C2:C100 but your criteria_range1 is A2:A50, Google Sheets will return a #VALUE! error. All ranges involved in the formula must have the exact same number of rows and columns.

Another common mistake is forgetting quotation marks around text criteria. If you are typing a word or a logical operator directly into the formula, it must be enclosed in double quotes. For example, using North instead of "North" will cause the formula to look for a named range called North, which likely doesn't exist, resulting in a #NAME? error.

Users also frequently confuse MINIFS with MIN. Remember that MIN simply finds the lowest number in a set. If you don't need any filters, MIN is the correct tool. Using MINIFS without criteria is not possible, as the function requires at least one criteria range and one criterion to operate.

Finally, there is the issue of empty cells or non-numeric data. If the min_range contains text or is entirely empty for the rows that meet your criteria, the function may return 0 or an error depending on the data structure. Ensure your numerical column is formatted as "Number" and not as "Plain Text."

Tips

Use Cell References for Flexibility: Instead of hard-coding names like "John" or "North" into your formula, point the criterion to another cell. For example, =MINIFS(C2:C100, A2:A100, E2). This allows you to change the value in cell E2 to instantly update the minimum value without editing the formula itself.

Utilize Wildcards: If you aren't sure of the exact spelling of a criterion, you can use wildcards. An asterisk (*) represents any number of characters. For example, using "North*" as a criterion would include "North," "Northwest," and "Northeast." A question mark (?) represents a single character.

Logical Operators for Ranges: You can find the minimum value based on numerical thresholds. For instance, to find the lowest sale that is greater than 100, use " >100" as your criterion. Note that the operator must be inside the quotation marks.

Combining with Other Functions: You can wrap MINIFS inside other functions. For example, if you want to display a custom message when no data is found, you can use IFERROR. If you want to find the difference between the minimum of one group and the minimum of another, you can subtract two MINIFS formulas from each other.

Troubleshooting

If your MINIFS formula is not working as expected, start with these checks:

Check for #VALUE! Errors: This almost always means your ranges are different sizes. Double-check that every range in the formula starts and ends at the same row (e.g., all are 2 to 100).

Check for #NAME? Errors: This usually indicates a typo in the function name or a missing set of quotation marks around a text string. Ensure you have typed MINIFS correctly and that all text criteria are in quotes.

Verify Data Types: If the formula returns 0 when you know there is a value, check the formatting of your min_range. Select the column, go to the Format menu > Number, and ensure it is set to "Number." If the numbers are stored as text, MINIFS will ignore them.

Inspect for Hidden Spaces: A common reason for a formula returning no results (or 0) is trailing spaces in your data. "John " is not the same as "John." Use the TRIM function on your data columns to remove unnecessary spaces before running your MINIFS formula.

Test with a Single Criterion: If a complex formula with five criteria isn't working, delete the criteria one by one until the formula starts working. This helps you identify exactly which range or criterion is causing the issue.

Frequently Asked Questions

Can MINIFS handle dates?

Yes, MINIFS works perfectly with dates. You can use a date in quotes (e.g., "2023-01-01") or a cell reference containing a date. You can also use operators like ">&=2023-01-01" to find the minimum value occurring on or after a specific date.

What happens if no cells meet the criteria?

If no cells in the range meet all the specified criteria, the MINIFS function will return 0. This can be confusing if 0 is also a valid value in your data, so it is helpful to check your criteria ranges for accuracy.

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

Google Sheets allows you to add up to 127 pairs of criteria ranges and criteria. In practical use, most users rarely exceed five or six, but the capacity is there for very complex datasets.

Does MINIFS work with arrays or other sheets?

Yes, you can reference ranges on other sheets by adding the sheet name followed by an exclamation point (e.g., 'Sales Data'!C2:C100). It also works with arrays, provided the dimensions remain consistent across all arguments.

Can I use OR logic in MINIFS?

No, MINIFS uses AND logic, meaning all criteria must be true for a value to be considered. To achieve OR logic (e.g., find the minimum if the region is "North" OR "South"), you would typically use a combination of MIN and FILTER, or add two MINIFS results together using a more complex array formula.