Formula sheet
Write SUMIF and VLOOKUP in a small sheet, copy them down and check them two ways.
What this lab shows
A formula written by AI can look right and give the wrong number. In this small sheet, with the made-up sales of a bakery, you paste or type the formula, see the cells each part reads, follow what happens to the dollar signs when you copy down and check the result against the hand calculation.
Made-up data. The lab understands six functions and imitates spreadsheet rules for them.
How to use it
- Start with the book's formula and change the row to see how it looks in B3 and B4.
- Remove the dollar signs and turn on "change the order of the rows": the result that looked right breaks.
- In the price exercise, compare VLOOKUP with and without dollar signs, with IFERROR and without FALSE.
Illustrative dataMade-up bakery data. The formulas are computed by a small interpreter built for this lab, which imitates Excel's and LibreOffice's rules for these six functions.
The bakery's sales sheet and the total by category computed with the book's formula.
| Date | Product | Category | Quantity | Price | Total |
|---|---|---|---|---|---|
| 11/02 | Brigadeiro | sweets | 12 | 3.50 | 42.00 |
| 11/02 | Carrot cake | cakes | 1 | 45.00 | 45.00 |
| 11/03 | Brigadeiro | sweets | 20 | 3.50 | 70.00 |
| 11/03 | Lemon pie | pies | 1 | 52.00 | 52.00 |
| 11/04 | Carrot cake | cakes | 2 | 45.00 | 90.00 |
| 11/04 | Beijinho | sweets | 15 | 3.50 | 52.50 |
| 11/05 | Lemon pie | pies | 1 | 52.00 | 52.00 |
| 11/05 | Chocolate cake | cakes | 1 | 48.00 | 48.00 |
=SUMIF(Sales!$C$2:$C$9, A2, Sales!$F$2:$F$9)
- sweets: 164.50
- cakes: 183.00
- pies: 104.00
The lab could not load. The summary above still applies.
Books that use this lab
No published book uses this lab yet.