Module 13 · Dynamic Arrays
Books under ten dollars

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
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
- Click cell G5.
- Type =FILTER( and the range to return.
- Type the condition and a closing bracket.
- Press Enter.
- 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.
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
- Click cell G14.
- Type FILTER with the range and the condition, then a comma.
- Type the text for no match in quotation marks and a closing bracket.
- 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.