Module 6 · Conditional Sums and Counts
Longest tour per type

Customers write the distance of every tour in June. Fatima wants to put a sign at the door: the average tour for each bike type, and the record. Goat the mountain bike is a candidate.
Steps
Find an average with a condition
AVERAGEIFS finds the average of the rows that match all conditions. Like SUMIFS, the range comes first.
How to do it
- Select the cell for the result.
- Type =AVERAGEIFS(
- Type the locked range to average and a comma.
- Type the locked range to check, the cell with the condition and a closing bracket.
- Press Enter.
=AVERAGEIFS($E$5:$E$20,$C$5:$C$20,G5)Task: Find the average tour for E-bike and Mountain. Fill in H6:H7.
Find the largest value with a condition
MAXIFS finds the largest number in the rows that match. MINIFS finds the smallest number. Both work like AVERAGEIFS.
How to do it
- Click cell I5.
- Type MAXIFS with the same values as AVERAGEIFS.
- Press Enter.
=MAXIFS($E$5:$E$20,$C$5:$C$20,G5)Task: Fill in the longest tours in I6:I7. Then find the shortest tours with MINIFS in J5:J7.