Module 13 · Dynamic Arrays · Books under ten dollars

Nadia Rahman runs Inkwell Books and loves data

During book week, students get a flyer with all books under ten dollars. Nadia also has to reorder the books that sell fast. She does not want to copy rows by hand. When a price changes, the lists must change too.

Loading the spreadsheet…

Module 13 · Dynamic Arrays

Books under ten dollars

Nadia Rahman, runs Inkwell Books and loves data
Nadia Rahman runs Inkwell Books and loves data

During book week, students get a flyer with all books under ten dollars. Nadia also has to reorder the books that sell fast. She does not want to copy rows by hand. When a price changes, the lists must change too.

Steps

  1. Filter rows with a formula

    FILTER returns the rows that match a condition. The first argument is the range to return. The second argument is the condition, for example D5:D16<10.

    How to do it

    1. Click cell G5.
    2. Type =FILTER( and the range to return.
    3. Type the condition and a closing bracket.
    4. Press Enter.
    5. Use > for more than, < for less than, >= for at least and = for equal to.

    =FILTER(B5:D16,D5:D16<10)

    Task: Nadia reorders the books that sold more than 50. In cell K5, list their titles.

  2. When no row matches

    If no row matches, FILTER shows #CALC!. The third argument is the text to show instead, for example "None".

    How to do it

    1. Click cell G14.
    2. Type FILTER with the range and the condition, then a comma.
    3. Type the text for no match in quotation marks and a closing bracket.
    4. Press Enter.

    =FILTER(B5:B16,C5:C16="Horror","None")

    Task: A student asks for books under $5. In cell K14, list them. Show None if there are no books.