{"base":{"id":"cs9-18","subject":"Data","title":"Spreadsheet functions","scene":"data9","steps":[{"mode":"funcs","eyebrow":"Summarising data","title":"MIN, MAX, COUNT, AVERAGE","body":"Functions summarise a range of cells. Try each one on the test marks. Notice that COUNT only counts cells with numbers in them.","actions":[{"id":"f0","label":"MIN"},{"id":"f1","label":"MAX"},{"id":"f2","label":"COUNT"},{"id":"f3","label":"AVERAGE"}]},{"mode":"ifcell","eyebrow":"IF","title":"A label for every row","body":"=IF(condition, value if true, value if false) gives each row a label. Change the pass mark and watch every result update.","controls":[{"id":"pass","label":"Pass mark","min":30,"max":80,"step":5,"value":50}]},{"mode":"ranges","eyebrow":"Ranges","title":"Which cells are included?","body":"B2:B7 means every cell from B2 down to B7. If the range is too short, the function misses data. Change where the range ends.","controls":[{"id":"rows","label":"Last row","min":1,"max":6,"step":1,"value":6}]},{"mode":"quiz","eyebrow":"Check yourself","title":"COUNT","body":"Cells B2:B6 contain 12, 7, \"none\", 20 and 3.","question":"What does =COUNT(B2:B6) give?","options":["4","5","42"],"answer":0,"right":"Correct. COUNT counts only the cells that contain numbers; \"none\" is text.","wrong":"Not quite. Does COUNT include text?","look":"funcs"}],"more":[{"type":"cards","id":"ideas","eyebrow":"Popular idea vs science","title":"Common mix-ups","items":[{"tag":"Popular idea","title":"\"COUNT adds up the numbers.\"","body":"COUNT tells you how many numbers there are. SUM adds them."},{"tag":"Popular idea","title":"\"=IF(B2>50,…) includes 50.\"","body":"> means strictly greater. Use >= to include 50."},{"tag":"Popular idea","title":"\"Functions update only when you press a button.\"","body":"Formulas recalculate automatically when their cells change."}]},{"type":"cards","id":"code","eyebrow":"Formulas","title":"Examples","items":[{"tag":"Smallest / largest","title":"Range B2:B20","body":"=MIN(B2:B20)\n=MAX(B2:B20)","code":true},{"tag":"How many numbers","title":"COUNT","body":"=COUNT(B2:B20)","code":true},{"tag":"Label","title":"IF","body":"=IF(B2>=50, \"Pass\", \"Retake\")","code":true}]},{"type":"activities","id":"try","eyebrow":"Try it at home","title":"Weather sheet","items":[{"title":"Track the temperature","time":"20 minutes","need":["A spreadsheet app (or paper)"],"steps":["Record the noon temperature for 7 days in column B.","Use MIN, MAX and AVERAGE to summarise the week.","In column C, use IF to label each day 'Warm' (20 °C or more) or 'Cool'.","Change one temperature. What updates?"],"why":"Functions turn a list of numbers into answers you can use.","safety":"No safety risks."}]},{"type":"quiz","id":"quiz","eyebrow":"Quiz","title":"Six more questions","questions":[{"question":"Which function finds the largest value?","options":["MIN","COUNT","MAX"],"answer":2,"right":"Correct. MAX = maximum.","wrong":"Not quite. Largest."},{"question":"What does B2:B9 mean?","options":["Only B2 and B9","Cells B2 to B9","Column B times 9"],"answer":1,"right":"Correct. A range of cells.","wrong":"Not quite. The colon means 'to'."},{"question":"=IF(A1>10, \"Yes\", \"No\") with A1 = 10 gives…","options":["Yes","10","No"],"answer":2,"right":"Correct. 10 > 10 is false.","wrong":"Not quite. Is 10 greater than 10?"},{"question":"Which function would count how many students took a test?","options":["MAX","COUNT","MIN"],"answer":1,"right":"Correct. It counts number cells.","wrong":"Not quite. How many?"},{"question":"Why use a formula instead of typing the answer?","options":["It updates when the data changes","It looks nicer","It uses less ink"],"answer":0,"right":"Correct. Formulas recalculate.","wrong":"Not quite. What if the data changes?"},{"question":"=MIN(3, 9, 1, 6) = ?","options":["1","9","3"],"answer":0,"right":"Correct. The smallest.","wrong":"Not quite. MIN = minimum."}]},{"type":"checklist","id":"check","eyebrow":"Self-check","title":"I can explain…","items":["how MIN, MAX and COUNT summarise data","how IF returns a value based on a condition","how cell ranges work","why formulas update automatically"]},{"type":"keywords","id":"words","eyebrow":"Key words","title":"Words to know","items":[{"word":"function","meaning":"A built-in formula such as MIN or MAX."},{"word":"range","meaning":"A block of cells, such as B2:B7."},{"word":"formula","meaning":"A calculation that starts with =."},{"word":"condition","meaning":"A test that is true or false."},{"word":"cell reference","meaning":"The address of a cell, such as B2."}]},{"type":"sources","id":"sources","title":"Sources","items":["BBC Bitesize KS3 Computer Science","Raspberry Pi Foundation, Computing curriculum resources"]}]},"overlay":null}