Module 6 · Conditional Sums and Counts · Weekend e-bike revenue

Fatima Haddad owns Ridgeline Bike Rental

Fatima thinks about two more e-bikes for the weekend. They are expensive. Before she buys, she wants the numbers: how much do e-bikes earn on Saturday and Sunday? One condition is not enough.

Loading the spreadsheet…

Module 6 · Conditional Sums and Counts

Weekend e-bike revenue

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

Fatima thinks about two more e-bikes for the weekend. They are expensive. Before she buys, she wants the numbers: how much do e-bikes earn on Saturday and Sunday? One condition is not enough.

Steps

  1. Add up with two conditions

    SUMIFS adds up the numbers in the rows that match all conditions. The range to add up comes first.

    How to do it

    1. Select the cell for the result.
    2. Type =SUMIFS(
    3. Type the range to add up and a comma.
    4. Type pair 1: a range, a comma, the condition and a comma.
    5. Type pair 2 and a closing bracket.
    6. Press Enter.
    7. SUMIF has the range to add up last. SUMIFS has it first.

    =SUMIFS(F5:F24,D5:D24,"E-bike",C5:C24,"Sat")

    Task: Find the e-bike revenue on Sunday. Put it in cell I6.

  2. Combine text and a comparison

    A condition in SUMIFS can compare numbers, for example ">=4". Put the comparison in quotation marks.

    How to do it

    1. Click cell I7.
    2. Type =SUMIFS(F5:F24,D5:D24,"E-bike",
    3. Type a comparison in quotation marks, for example ">=4".
    4. Press Enter.

    =SUMIFS(F5:F24,D5:D24,"E-bike",E5:E24,">=4")

    Task: Find the revenue of City bikes for rentals of 4 hours or more. Put it in cell I8.