[{"data":1,"prerenderedAt":48},["ShallowReactive",2],{"lesson-shell:conditional-sums\u002Fcountifs-dates:en":3},{"id":4,"who":5,"role":6,"image":7,"text":8},"countifs-dates","Fatima Haddad","owns Ridgeline Bike Rental","\u002Fpersona\u002Ffatima.webp",{"none":9,"win":36,"mac":42},{"title":10,"story":11,"steps":12},"Rentals in May","The two new e-bikes are on the way. Fatima wants to know when they are needed most. She compares the rentals in May and in June. The rental list has dates, and a date range needs two conditions.",[13,26],{"id":14,"title":15,"intro":16,"how":17,"example":24,"task":25},"date-range","Count dates between two days","COUNTIFS counts the rows that match all conditions. For a date range, use two conditions on the same column.",[18,19,20,21,22,23],"Select the cell for the result.","Type =COUNTIFS(","Type the date range and the start: \">=\"&start. Type a comma.","Type the same range and the end: \"\u003C=\"&end. Type a closing bracket.","Press Enter.","You can also write the date in the formula with DATE: \">=\"&DATE(2026,5,1).","=COUNTIFS(B5:B24,\">=\"&G5,B5:B24,\"\u003C=\"&H5)","Count the rentals in June. Use G6 and H6. Put the result in cell I6.",{"id":27,"title":28,"intro":29,"how":30,"example":34,"task":35},"date-and-type","Add a third condition","COUNTIFS can check many conditions. Add one more pair for each condition.",[31,32,33,22],"Click cell J5.","Type the pair for the bike type and a comma.","Type the two pairs for the date range and a closing bracket.","=COUNTIFS(C5:C24,\"E-bike\",B5:B24,\">=\"&G5,B5:B24,\"\u003C=\"&H5)","Count the e-bike rentals in June. Put the result in cell J6.",{"title":10,"story":11,"steps":37},[38,40],{"id":14,"title":15,"intro":16,"how":39,"example":24,"task":25},[18,19,20,21,22,23],{"id":27,"title":28,"intro":29,"how":41,"example":34,"task":35},[31,32,33,22],{"title":10,"story":11,"steps":43},[44,46],{"id":14,"title":15,"intro":16,"how":45,"example":24,"task":25},[18,19,20,21,22,23],{"id":27,"title":28,"intro":29,"how":47,"example":34,"task":35},[31,32,33,22],1795376394963]