[{"data":1,"prerenderedAt":46},["ShallowReactive",2],{"lesson-shell:dynamic-arrays\u002Ffilter:en":3},{"id":4,"who":5,"role":6,"image":7,"text":8},"filter","Nadia Rahman","runs Inkwell Books and loves data","\u002Fpersona\u002Fnadia.webp",{"none":9,"win":34,"mac":40},{"title":10,"story":11,"steps":12},"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.",[13,24],{"id":4,"title":14,"intro":15,"how":16,"example":22,"task":23},"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\u003C10.",[17,18,19,20,21],"Click cell G5.","Type =FILTER( and the range to return.","Type the condition and a closing bracket.","Press Enter.","Use > for more than, \u003C for less than, >= for at least and = for equal to.","=FILTER(B5:D16,D5:D16\u003C10)","Nadia reorders the books that sold more than 50. In cell K5, list their titles.",{"id":25,"title":26,"intro":27,"how":28,"example":32,"task":33},"if-empty","When no row matches","If no row matches, FILTER shows #CALC!. The third argument is the text to show instead, for example \"None\".",[29,30,31,20],"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.","=FILTER(B5:B16,C5:C16=\"Horror\",\"None\")","A student asks for books under $5. In cell K14, list them. Show None if there are no books.",{"title":10,"story":11,"steps":35},[36,38],{"id":4,"title":14,"intro":15,"how":37,"example":22,"task":23},[17,18,19,20,21],{"id":25,"title":26,"intro":27,"how":39,"example":32,"task":33},[29,30,31,20],{"title":10,"story":11,"steps":41},[42,44],{"id":4,"title":14,"intro":15,"how":43,"example":22,"task":23},[17,18,19,20,21],{"id":25,"title":26,"intro":27,"how":45,"example":32,"task":33},[29,30,31,20],1795376395739]