Going Stellar

Home/Google Sheets reference

Google Sheets function · Statistical

MINIFS in Google Sheets: syntax and examples

MINIFS finds the minimum of a range but only over rows that pass one or more conditions. It is the conditional version of MIN, like SUMIFS for sums. Conditions on different columns combine with AND.

Syntax

MINIFS(range, criteria_range1, criterion1, [criteria_range2, criterion2], …)

Arguments

ArgumentTypeRequiredWhat it does
rangerangeyesThe numbers from which the minimum is taken.
criteria_range1rangeyesThe range tested against the first criterion. Same size as range.
criterion1anyyesThe condition, such as "North" or ">100".
criteria_range2, criterion2, ...anynoMore range and condition pairs. A row must meet all of them.

Examples

The examples use this table, starting in A1:

RegionRepSales
NorthAna120
SouthBob80
NorthCris200
SouthDan50
NorthEva90
=MINIFS(C2:C6, A2:A6, "North")

Result: 90

Lowest sale in the North: 90.

Run in a Google Sheet (English US locale) on .

=MINIFS(C2:C6, A2:A6, "South")

Result: 50

Same range, other region.

Run in a Google Sheet (English US locale) on .

=MINIFS(C2:C6, A2:A6, "North", C2:C6, ">100")

Result: 120

Two conditions: North and above 100. The rows 120 and 200 qualify, so the answer is 120.

Run in a Google Sheet (English US locale) on .

=MINIFS(C2:C6, B2:B6, "<>Ana")

Result: 50

Everyone except Ana.

Run in a Google Sheet (English US locale) on .

=MINIFS(C2:C6, A2:A6, "East")

Result: 0

No row matches. The result is 0, which can be mistaken for a real minimum.

Run in a Google Sheet (English US locale) on .

Common errors

  • When no row matches, MINIFS returns 0, not an error. Check with COUNTIFS if 0 could be a real value.
  • The range and every criteria range must have the same size. Otherwise the result is #VALUE!.
  • All pairs must be true for the same row. There is no OR between pairs.

Compared with Excel

Same syntax in Excel 2019 and later.

Sources

  1. MINIFS (Docs Editors Help)

Markdown version · All functions