Module 6 · Conditional Sums and Counts · All mountain models

Fatima Haddad owns Ridgeline Bike Rental

Ridgeline has 16 bikes now, and the model names are long. A customer group wants mountain bikes for Saturday. Fatima must know how many she has and how many are ready. The models do not have one exact name.

Loading the spreadsheet…

Module 6 · Conditional Sums and Counts

All mountain models

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

Ridgeline has 16 bikes now, and the model names are long. A customer group wants mountain bikes for Saturday. Fatima must know how many she has and how many are ready. The models do not have one exact name.

Steps

  1. Match part of a text with *

    In a condition, * stands for any text. "Mountain*" finds all texts that start with Mountain.

    How to do it

    1. Select the cell for the result.
    2. Type =COUNTIF(C5:C20,
    3. Type the text with * in quotation marks and a closing bracket.
    4. Press Enter.
    5. ? stands for one character. "Kids ??" finds Kids 20 and Kids 24.

    =COUNTIF(C5:C20,"Mountain*")

    Task: E-Mountain is a mountain bike too. Count all models that contain Mountain. Put the result in cell G6.

  2. Count what is not equal with <>

    "<>Ready" means: not equal to Ready. It counts all other values.

    How to do it

    1. Click cell G7.
    2. Type <> and the value in quotation marks.
    3. Press Enter.

    =COUNTIF(D5:D20,"<>Ready")

    Task: Count the mountain models that are not ready. Use COUNTIFS with "*Mountain*" and "<>Ready". Put the result in cell G8.