[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"lesson-shell:conditional-sums\u002Fcountif:en":3},{"id":4,"who":5,"role":6,"image":7,"text":8},"countif","Fatima Haddad","owns Ridgeline Bike Rental","\u002Fpersona\u002Ffatima.webp",{"none":9,"win":46,"mac":54},{"title":10,"story":11,"steps":12},"How many e-bikes","Fatima gives every bike a name. On Sunday, 16 rentals went out. Fatima wants to know which bike types are popular. You count them with COUNTIF.",[13,25,35],{"id":14,"title":15,"intro":16,"how":17,"example":23,"task":24},"countif-text","Count cells with COUNTIF","COUNTIF counts the cells in a range that match a condition.",[18,19,20,21,22],"Select the cell for the result.","Type =COUNTIF(","Type the range to look in. Type a comma.","Type the condition and a closing bracket. Put text in quotation marks.","Press Enter.","=COUNTIF(C5:C20,\"City\")","Count the E-bike rentals. Put the number in cell H6.",{"id":26,"title":27,"intro":28,"how":29,"example":33,"task":34},"countif-cell","Use a cell as the condition","The condition can be a cell. Then you can copy the formula. Lock the range with $ first.",[30,31,32,22],"Click cell H7.","Lock the range with $ if you want to copy the formula.","Type the cell with the condition and a closing bracket.","=COUNTIF($C$5:$C$20,G7)","Count the Kids bike rentals in cell H8. Use cell G8 as the condition.",{"id":36,"title":37,"intro":38,"how":39,"example":44,"task":45},"countif-number","Count numbers with a comparison","The condition can compare numbers, for example \">3\". Put the comparison in quotation marks.",[40,41,42,22,43],"Click cell H10.","Type =COUNTIF(D5:D20,","For a comparison, type it in quotation marks, for example \">3\" or \"\u003C=2\".","To count one exact number, type the number without quotation marks, for example =COUNTIF(D5:D20,2).","=COUNTIF(D5:D20,\">3\")","Count the rentals of exactly 1 hour. Put the number in cell H11.",{"title":10,"story":11,"steps":47},[48,50,52],{"id":14,"title":15,"intro":16,"how":49,"example":23,"task":24},[18,19,20,21,22],{"id":26,"title":27,"intro":28,"how":51,"example":33,"task":34},[30,31,32,22],{"id":36,"title":37,"intro":38,"how":53,"example":44,"task":45},[40,41,42,22,43],{"title":10,"story":11,"steps":55},[56,58,60],{"id":14,"title":15,"intro":16,"how":57,"example":23,"task":24},[18,19,20,21,22],{"id":26,"title":27,"intro":28,"how":59,"example":33,"task":34},[30,31,32,22],{"id":36,"title":37,"intro":38,"how":61,"example":44,"task":45},[40,41,42,22,43],1795376394051]