For teachers / Answer key
Answer key: Logic & Decisions
For teachers. This page is kept out of search engines and linked only from the teachers page. Students can see the same answers in a lesson with Show answer. Any formula that gives the right values counts.
1. Comparisons: TRUE or FALSE (Beginner, 4 min)
A plant needs reordering when its stock is at or below its reorder level. In
E2, type=B2<=C2, then copy it down toE7.E2:E7=B2<=C2then copy it across the range
Shows E2: FALSE, E3: TRUE, E4: TRUE, E5: TRUE, E6: TRUE, E7: FALSE
Which plants come from the Fernhill nursery? In
F2:F7, compare each supplier with the text Fernhill. Text inside a formula needs double quotes:=D2="Fernhill"F2:F7=D2="Fernhill"then copy it across the range
Shows F2: TRUE, F3: FALSE, F4: TRUE, F5: FALSE, F6: TRUE, F7: FALSE
In
G2:G7, flag the plants you can sell today: their stock is not equal to 0. Use the<>operator.G2:G7=B2<>0then copy it across the range
Shows G2: TRUE, G3: TRUE, G4: TRUE, G5: FALSE, G6: TRUE, G7: TRUE
Everything is heading to a weekend market. In
B10, check whether the total stock is greater than the stall capacity inB9. Either side of a comparison can be a calculation, so you can start with a SUM.B10=SUM(B2:B7)>B9
Shows B10: TRUE
2. The IF function (Beginner, 4 min)
Did each rep hit their target? In
D2:D8, showHitwhen sales are greater than or equal to the target, andMissedotherwise.D2:D8=IF(B2>=C2,"Hit","Missed")then copy it across the range
Shows D2: Hit, D3: Missed, D4: Hit, D5: Hit, D6: Missed, D7: Hit, and 1 more
Reps who hit their target earn a bonus: their sales multiplied by the rate in
B10. Everyone else gets 0. Fill inE2:E8, locking the rate as$B$10so it survives copying.E2:E8=IF(B2>=C2,B2*$B$10,0)then copy it across the range
Shows E2: $620.00, E3: $0.00, E4: $762.50, E5: $550.00, E6: $0.00, E7: $695.00, and 1 more
Managers only want a note where action is needed. In
F2:F8, showBook a chatwhen the status in column D isMissed. Otherwise show nothing, using empty quotes"".F2:F8=IF(D2="Missed","Book a chat","")then copy it across the range
Shows F2: (empty), F3: Book a chat, F4: (empty), F5: (empty), F6: Book a chat, F7: (empty), and 1 more
Ben just closed a late sale. Change his sales in
B3to10200and watchD3,E3andF3update together.B310200
Shows B3: $10,200
3. Nested IF and IFS (Intermediate, 5 min)
Coffee club members who spend $1,500 or more are Gold, $800 or more are Silver, and everyone else is Bronze. In
D2:D9, work out each tier with a nested IF.D2:D9=IF(C2>=1500,"Gold",IF(C2>=800,"Silver","Bronze"))then copy it across the range
Shows D2: Bronze, D3: Bronze, D4: Gold, D5: Silver, D6: Bronze, D7: Gold, and 2 more
Rewards depend on orders: 50+ earns a
Free grinder, 25+ aFree 1kg bag, 10+ aFree tote, and everyone else getsNot yet. Fill inE2:E9with IFS, usingTRUEas the final test.E2:E9=IFS(B2>=50,"Free grinder",B2>=25,"Free 1kg bag",B2>=10,"Free tote",TRUE,"Not yet")then copy it across the range
Shows E2: Free tote, E3: Not yet, E4: Free 1kg bag, E5: Free tote, E6: Not yet, E7: Free grinder, and 2 more
The tier sets the discount: Gold gets 15%, Silver 10% and Bronze 5%. In
F2:F9, use IFS to test the tier in column D.F2:F9=IFS(D2="Gold",15%,D2="Silver",10%,TRUE,5%)then copy it across the range
Shows F2: 5%, F3: 5%, F4: 15%, F5: 10%, F6: 5%, F7: 15%, and 2 more
4. AND, OR and NOT (Intermediate, 5 min)
Under-18s and over-65s swim at a concession rate. In
E2:E9, use OR to test whether the age is under 18 or 65 or over.E2:E9=OR(B2<18,B2>=65)then copy it across the range
Shows E2: TRUE, E3: FALSE, E4: TRUE, E5: FALSE, E6: TRUE, E7: TRUE, and 2 more
A loyalty reward goes to swimmers who are members and have visited at least 12 times this month. Use AND in
F2:F9.F2:F9=AND(C2="Yes",D2>=12)then copy it across the range
Shows F2: FALSE, F3: FALSE, F4: TRUE, F5: TRUE, F6: FALSE, F7: FALSE, and 2 more
Concession tickets cost $4.50 and standard tickets $7. In
G2:G9, put your OR test straight inside an IF to show each swimmer's price.G2:G9=IF(OR(B2<18,B2>=65),4.5,7)then copy it across the range
Shows G2: $4.50, G3: $7.00, G4: $4.50, G5: $7.00, G6: $4.50, G7: $4.50, and 2 more
Non-members who have visited 4 or more times should get a membership offer. In
H2:H9, showSend offerfor them and nothing ("") for everyone else. Use NOT to flip the member test:NOT(C2="Yes").H2:H9=IF(AND(NOT(C2="Yes"),D2>=4),"Send offer","")then copy it across the range
Shows H2: (empty), H3: Send offer, H4: (empty), H5: (empty), H6: (empty), H7: Send offer, and 2 more
5. IFERROR and IFNA (Intermediate, 4 min)
The wool scarf sold nothing this week, so
D5divides by zero. EditD2to=IFERROR(B2/C2, "No sales"), then copy it down toD7.D2:D7=IFERROR(B2/C2,"No sales")then copy it across the range
Shows D2: $12.00, D3: $18.00, D4: $22.00, D5: No sales, D6: $3.50, D7: $6.00
Column E looks up each product's maker in the list at
G2:H6using VLOOKUP, which you'll meet in the Lookups track. Two products aren't on the list yet, so they show #N/A. Wrap the formulas inE2:E7with IFNA to showNot listedinstead.E2:E7=IFNA(VLOOKUP(A2,$G$2:$H$6,2,FALSE),"Not listed")then copy it across the range
Shows E2: Amberline Candles, E3: Thread and Loom, E4: Riverbank Pottery, E5: Highfold Knits, E6: Not listed, E7: Not listed
In
D9, find the average price across the products inD2:D7.D9=AVERAGE(D2:D7)
Shows D9: $12.30