[{"data":1,"prerenderedAt":49},["ShallowReactive",2],{"lesson-shell:conditional-sums\u002Fsumif:en":3},{"id":4,"who":5,"role":6,"image":7,"text":8},"sumif","Fatima Haddad","owns Ridgeline Bike Rental","\u002Fpersona\u002Ffatima.webp",{"none":9,"win":37,"mac":43},{"title":10,"story":11,"steps":12},"Hours per bike type","Saturday was busy at Ridgeline. Fatima wants to know which bike type works the hardest and which type earns the most. Counting is not enough now. You add up the hours and the money with SUMIF.",[13,26],{"id":14,"title":15,"intro":16,"how":17,"example":24,"task":25},"sumif-text","Add up with a condition","SUMIF adds the numbers in a range, but only in the rows that match a condition.",[18,19,20,21,22,23],"Select the cell for the result.","Type =SUMIF(","Type the range to look in. Type a comma.","Type the condition and a comma.","Type the range to add up and a closing bracket.","Press Enter.","=SUMIF(C5:C20,\"City\",D5:D20)","Add up the hours for E-bike, Mountain and Kids. Put them in cells I6, I7 and I8.",{"id":27,"title":28,"intro":29,"how":30,"example":35,"task":36},"sumif-cell","Use a cell as the condition and copy","The condition can be a cell. Lock the two ranges with $. Then you can copy the formula down.",[31,32,33,34,23],"Click cell J5.","Lock the ranges with $ if you want to copy the formula.","Type the cell with the condition and a comma.","Type $E$5:$E$20 and a closing bracket.","=SUMIF($C$5:$C$20,H5,$E$5:$E$20)","Find the revenue for the other bike types. Fill in J6:J8.",{"title":10,"story":11,"steps":38},[39,41],{"id":14,"title":15,"intro":16,"how":40,"example":24,"task":25},[18,19,20,21,22,23],{"id":27,"title":28,"intro":29,"how":42,"example":35,"task":36},[31,32,33,34,23],{"title":10,"story":11,"steps":44},[45,47],{"id":14,"title":15,"intro":16,"how":46,"example":24,"task":25},[18,19,20,21,22,23],{"id":27,"title":28,"intro":29,"how":48,"example":35,"task":36},[31,32,33,34,23],1795376394867]