Module 6 · Conditional Sums and Counts · Rentals in May

Fatima Haddad owns Ridgeline Bike Rental

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.

Loading the spreadsheet…

Module 6 · Conditional Sums and Counts

Rentals in May

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

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

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

    1. Select the cell for the result.
    2. Type =COUNTIFS(
    3. Type the date range and the start: ">="&start. Type a comma.
    4. Type the same range and the end: "<="&end. Type a closing bracket.
    5. Press Enter.
    6. 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.

  2. Add a third condition

    COUNTIFS can check many conditions. Add one more pair for each condition.

    How to do it

    1. Click cell J5.
    2. Type the pair for the bike type and a comma.
    3. Type the two pairs for the date range and a closing bracket.
    4. 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.