Module 6 · Conditional Sums and Counts
Rentals in May

The two new e-bikes are on the way. Fatima wants to know when they are needed most. She compares the rentals in May and in June. The rental list has dates, and a date range needs two conditions.
Steps
Count dates between two days
COUNTIFS counts the rows that match all conditions. For a date range, use two conditions on the same column.
How to do it
- Select the cell for the result.
- Type =COUNTIFS(
- Type the date range and the start: ">="&start. Type a comma.
- Type the same range and the end: "<="&end. Type a closing bracket.
- Press Enter.
- You can also write the date in the formula with DATE: ">="&DATE(2026,5,1).
=COUNTIFS(B5:B24,">="&G5,B5:B24,"<="&H5)Task: Count the rentals in June. Use G6 and H6. Put the result in cell I6.
Add a third condition
COUNTIFS can check many conditions. Add one more pair for each condition.
How to do it
- Click cell J5.
- Type the pair for the bike type and a comma.
- Type the two pairs for the date range and a closing bracket.
- Press Enter.
=COUNTIFS(C5:C24,"E-bike",B5:B24,">="&G5,B5:B24,"<="&H5)Task: Count the e-bike rentals in June. Put the result in cell J6.