Module 6 · Conditional Sums and Counts · Hours per bike type

Fatima Haddad owns Ridgeline Bike Rental

Saturday was busy at Ridgeline. Fatima wants to know which bike type works the hardest and which type earns the most. Counting is not enough now. You add up the hours and the money with SUMIF.

Loading the spreadsheet…

Module 6 · Conditional Sums and Counts

Hours per bike type

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

Saturday was busy at Ridgeline. Fatima wants to know which bike type works the hardest and which type earns the most. Counting is not enough now. You add up the hours and the money with SUMIF.

Steps

  1. Add up with a condition

    SUMIF adds the numbers in a range, but only in the rows that match a condition.

    How to do it

    1. Select the cell for the result.
    2. Type =SUMIF(
    3. Type the range to look in. Type a comma.
    4. Type the condition and a comma.
    5. Type the range to add up and a closing bracket.
    6. Press Enter.

    =SUMIF(C5:C20,"City",D5:D20)

    Task: Add up the hours for E-bike, Mountain and Kids. Put them in cells I6, I7 and I8.

  2. Use a cell as the condition and copy

    The condition can be a cell. Lock the two ranges with $. Then you can copy the formula down.

    How to do it

    1. Click cell J5.
    2. Lock the ranges with $ if you want to copy the formula.
    3. Type the cell with the condition and a comma.
    4. Type $E$5:$E$20 and a closing bracket.
    5. Press Enter.

    =SUMIF($C$5:$C$20,H5,$E$5:$E$20)

    Task: Find the revenue for the other bike types. Fill in J6:J8.