[{"data":1,"prerenderedAt":48},["ShallowReactive",2],{"lesson-shell:dynamic-arrays\u002Flet:en":3},{"id":4,"who":5,"role":6,"image":7,"text":8},"let","Nadia Rahman","runs Inkwell Books and loves data","\u002Fpersona\u002Fnadia.webp",{"none":9,"win":36,"mac":42},{"title":10,"story":11,"steps":12},"Name the steps","Book week is over. Nadia writes the newsletter Inkwell Picks with the best numbers. Her formulas are long now, and Sam cannot read them. LET gives each step a name.",[13,26],{"id":14,"title":15,"intro":16,"how":17,"example":24,"task":25},"names","Give a calculation a name","LET gives names to values. First a name, then its value. You can add more pairs. The last argument is the calculation that uses the names.",[18,19,20,21,22,23],"Click cell H5.","Type =LET(, a name, a comma, its value and a comma.","Type the next name, its value and a comma.","Type the calculation with the names and a closing bracket.","Press Enter.","A name has no spaces and is not a cell reference. Use the same spelling each time.","=LET(part,SUMIFS(E5:E16,C5:C16,\"Fantasy\"),total,SUM(E5:E16),part\u002Ftotal)","Calculate the Crime share with LET. Put it in cell H6.",{"id":27,"title":28,"intro":29,"how":30,"example":34,"task":35},"spill","Name a list","A name in LET can also be a list, for example the result of FILTER. The calculation can then sort or count the list.",[31,32,33,22],"Click cell J5.","Type =LET( with a name for the list, the FILTER formula and a comma.","Type the calculation with the name and a closing bracket.","=LET(cheap,FILTER(B5:B16,D5:D16\u003C10),SORT(cheap))","In cell L5, count the books that sold more than 50. Use LET with a name for the FILTER list, and ROWS.",{"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],1795376395812]