Practice by topic / Excel / Conditional Aggregation

AVERAGEIFS, MAXIFS, MINIFS Exercises

AVERAGEIFS, MAXIFS and MINIFS work like SUMIFS: the values first, then one or more range/criteria pairs. =MAXIFS(C2:C7,A2:A7,"North") returns the highest North sale, and each extra pair narrows it further. They answer "what is the best, worst or typical value for this group?" without filtering. These 10 exercises build up step by step, starting with highest sale in one region, lowest sale in one region, average sale in a region, rounded.

3 of 10 free · no sign-up needed · graded on the formula you write

1

Highest Sale in One Region

Free

A2:A7 hold regions and C2:C7 sales. Write a formula in E2 that returns the highest sale in the North region.

ABCDE
1RegionRepSales
2NorthAli4200?
3SouthMei3100
4NorthRaj5600
5EastSiti2800
6SouthTom4700
7NorthEva3900
Show the solution

Use =MAXIFS(C2:C7,A2:A7,"North")

Right — MAXIFS is MAX with a filter: the values first, then range/criteria pairs.

Expected result in E2: 5600

Try it in the live spreadsheet →
2

Lowest Sale in One Region

Free

A2:A7 hold regions and C2:C7 sales. Write a formula in E2 that returns the lowest sale in the South region.

ABCDE
1RegionRepSales
2NorthAli4200?
3SouthMei3100
4NorthRaj5600
5EastSiti2800
6SouthTom4700
7NorthEva3900
Show the solution

Use =MINIFS(C2:C7,A2:A7,"South")

Good — MINIFS takes its arguments in the same order as MAXIFS.

Expected result in E2: 3100

Try it in the live spreadsheet →
3

Average Sale in a Region, Rounded

Free

A2:A7 hold regions and C2:C7 sales. Write a formula in E2 that returns the average North sale, rounded to 2 decimal places.

ABCDE
1RegionRepSales
2NorthAli4200?
3SouthMei3100
4NorthRaj5600
5EastSiti2800
6SouthTom4700
7NorthEva3900
Show the solution

Use =ROUND(AVERAGEIFS(C2:C7,A2:A7,"North"),2)

Right — wrap AVERAGEIFS in ROUND to tidy the result.

Expected result in E2: 4566.67

Try it in the live spreadsheet →
4

Highest Sale Below a Cap

A2:A7 hold regions and C2:C7 sales. Write a formula in E2 that returns the highest North sale that is below 5000.

ABCDE
1RegionRepSales
2NorthAli4200?
3SouthMei3100
4NorthRaj5600
5EastSiti2800
6SouthTom4700
7NorthEva3900

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
5

Average Excluding One Region

A2:A7 hold regions and C2:C7 sales. Write a formula in E2 that returns the average sale for every region except East.

ABCDE
1RegionRepSales
2NorthAli4200?
3SouthMei3100
4NorthRaj5600
5EastSiti2800
6SouthTom4700
7NorthEva3900

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
6

Take the Region From a Cell

A2:A7 hold regions, C2:C7 sales, and F1 holds a region name. Write a formula in F2 that returns the highest sale for the region in F1.

ABCDEF
1RegionRepSalesRegionSouth
2NorthAli4200?
3SouthMei3100
4NorthRaj5600
5EastSiti2800
6SouthTom4700
7NorthEva3900

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
7

Lowest Real Score, Ignoring Zeros

A2:A7 hold test scores, where 0 means the student didn't sit the test. Write a formula in C1 that returns the lowest score above zero.

ABC
1Score?
20
372
40
565
688
759

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
8

Average Days to Close for High Priority

A2:A6 hold ticket priorities and B2:B6 the days each took to close. Write a formula in D1 that returns the average days to close for "High" priority tickets.

ABCD
1PriorityDays to close?
2High2
3Low9
4High4
5Medium6
6High3

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
9

Latest Order Number for a Customer

A2:A7 hold customer names and B2:B7 order numbers (higher is newer). Write a formula in D1 that returns Acme's most recent order number.

ABCD
1CustomerOrder no.?
2Acme1001
3Bolt1002
4Acme1005
5Core1007
6Acme1009
7Bolt1010

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
10

Cheapest Supplier Price for a Part

A2:A6 hold part names, B2:B6 suppliers and C2:C6 prices. Write a formula in E1 that returns the cheapest price for "Bolt M6".

ABCDE
1PartSupplierPrice?
2Bolt M6Alpha0.42
3Bolt M6Beta0.38
4Nut M6Alpha0.15
5Bolt M6Gamma0.4
6Nut M6Beta0.12

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →