Module 6 · Conditional Sums and Counts · Longest tour per type

Fatima Haddad owns Ridgeline Bike Rental

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.

Loading the spreadsheet…

Module 6 · Conditional Sums and Counts

Longest tour per type

Fatima Haddad, owns Ridgeline Bike Rental
Fatima Haddad owns Ridgeline Bike Rental

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

  1. 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

    1. Select the cell for the result.
    2. Type =AVERAGEIFS(
    3. Type the locked range to average and a comma.
    4. Type the locked range to check, the cell with the condition and a closing bracket.
    5. 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.

  2. 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

    1. Click cell I5.
    2. Type MAXIFS with the same values as AVERAGEIFS.
    3. 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.