Module 6 · Conditional Sums and Counts
Hours per bike type

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
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
- Select the cell for the result.
- Type =SUMIF(
- Type the range to look in. Type a comma.
- Type the condition and a comma.
- Type the range to add up and a closing bracket.
- 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.
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
- Click cell J5.
- Lock the ranges with $ if you want to copy the formula.
- Type the cell with the condition and a comma.
- Type $E$5:$E$20 and a closing bracket.
- 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.