Advanced 11: Make a pivot table
Scenario
You are a data analyst. Finance sheet (column A = payment_id, B = region, C = amount, rows 2–5). Insert ▸ PivotTable. Put the group in Rows and the number in Values (Sum). The formula version is PIVOTBY.
Question
Write the formula in the editor, press Check my answer, then try changing one small thing.
Your task
- Write the formula in the editor
- Press Check my answer
- Compare with the expected result
Advanced · COUNTIF & SUMIF — question 2 of 30
1. Choose your dataset
Pick an industry and a size. Your code and results change to match.
💡 Explain my whole code, line by line (hover any word in the editor for a tip)
🌈 In short — no coding words
Altogether: this formula looks at the cells you named and works out one answer.
Dataset & schema
payments
The tiny starter data. Bigger data scrolls.
Fields
| A: payment_id | B: region | C: amount |
|---|---|---|
| P1 | North | 500 |
| P2 | South | 200 |
| P3 | North | 900 |
| P4 | East | 300 |
Finance sheet only. Header is row 1, data is rows 2–5.
$ Press “Check my answer” — results appear here.Your next steps
Each item turns green when your answer includes it.
- Starts with =
- Uses PIVOTBY