Basic Functions
Intermediate

MINIFS and MAXIFS: the extremes of one group

The cheapest and dearest option you can actually buy today.

Task:

You are pricing a replacement monitor. Some suppliers are out of stock, and their prices are no use to you. Put the lowest in-stock price in B9 and the highest in-stock price in B10.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

10 rows × 3 columns2 cells you fill in
ABC
1SupplierPriceIn stock
2Northline189Yes
3Brightway164No
4Coastal IT212Yes
5Datafirst175Yes
6Elmside238No
7Fernhill199Yes
8
9Cheapest in stock
10Dearest in stock
What this exercise teachesMay contain the answer

Plain MIN would report Brightway at 164, which you cannot buy. MINIFS and MAXIFS apply the condition first and only then look for the extreme, so the answer is the cheapest thing that is actually available. Note the order: unlike AVERAGEIF, the range you want back comes first.