Lesson 8 of 8 · see all lessons
Formulas from zero
Answer questions with conditions and lookups
Organize and summarize the month
13 min
Excel practice: build a monthly sales report
A final Excel practice task: build a one-page monthly sales report with SUM, SUMIFS, XLOOKUP and a pivot, then check that every number adds up.
By the end of this lesson you can
- Build a one-page report from formulas you already know
- Find the best item and best seller with SUMIFS plus XLOOKUP of MAX
- Tell revenue from profit and explain why the leaders differ
- Prove the report adds up by checking it against a pivot
From earlier lessons · 1 of 3
What does an Excel pivot need after you change the source data?
Pick one answer.
From earlier lessons · 2 of 3
Which formula returns the item on the biggest order line?
Pick one answer.
From earlier lessons · 3 of 3
Which formula gives Chloe's coffee revenue?
Pick one answer.
It's the first of April. The manager wants March on one page: revenue, shares, the best item and the best seller. Every tool you need is already in your sheet.
Take a guess
Ana brought in the most revenue. Did she also bring in the most profit, after ingredient costs?
No pressure. Guess now, and the lesson will show you if you were right.
The brief
The manager wants one page for March. Build it in the report panel, labels in column P and formulas in column Q, starting at row 20. Try each formula yourself before you open the answer. You can use H2:H31 style ranges or Sales[Total] style references; the results are the same.
Part 1: the headline numbers
Predict, then reveal
Write formulas for revenue, number of order lines, items sold and the average order line. Guess the average before you check.
Predict, then reveal
Now the two shares: weekend revenue as a share of the month, and coffee's share. Use SUMIFS and divide by Q20.
Predict, then reveal
Profit and profit margin: what does the café keep after ingredient costs, and what share of revenue is that?
Part 2: the best item
To find the best item, first total each one. Type Item in S12 and Revenue in T12. Copy the item names in S2:S9 and paste them into S13, so they fill S13:S20. Then one SUMIFS, locked with $, fills down. Finally XLOOKUP the biggest total back to its name.
T13: =SUMIFS($H$2:$H$31,$C$2:$C$31,S13) (fill down to T20)P28: Best item Q28: =XLOOKUP(MAX(T13:T20),T13:T20,S13:S20)
What should =SUM(T13:T20) show, and why is it worth typing?
Pick one answer.
Part 3: the best seller, two ways
S23: Staff T23: Revenue U23: ProfitS24: Ana T24: =SUMIFS($H$2:$H$31,$G$2:$G$31,S24) U24: =SUMIFS($N$2:$N$31,$G$2:$G$31,S24)S25: Ben (fill T24:U24 down to row 26)S26: ChloeP29: Top by revenue Q29: =XLOOKUP(MAX(T24:T26),T24:T26,S24:S26)P30: Top by profit Q30: =XLOOKUP(MAX(U24:U26),U24:U26,S24:S26)
Predict, then reveal
Ana leads on revenue, but Chloe leads on profit. Before you read on, which column of the sheet explains the difference?
Change one thing: suppose every latte had sold at 4.00 instead of 3.50. The café sold 59 lattes. What would March revenue be?
Pick one answer.
Part 4: prove it with a pivot
Build a pivot from the Sales table with Item in Rows and Total in Values. To sort it, right-click any number in the Sum of Total column and choose Sort > Sort Largest to Smallest. Every number should match column T, and the grand total should match Q20. When two independent methods agree, you can send the report.
Row Labels Sum of TotalLatte 206.50Sandwich 162.50Cappuccino 87.75Croissant 57.75Espresso 47.50Muffin 39.00Chai 36.00Green Tea 12.00Grand Total 649.00
Put in order
Put the report-building steps in the order this lesson used them.
Drag, or focus an item and press Space, move with the arrow keys, then Space to drop.
- Confirm every number with a pivot
- Total each item with one SUMIFS filled down
- Write the headline totals with SUM, COUNT and AVERAGE
- Divide SUMIFS results by revenue for the shares
- Check the item totals add up to revenue
- XLOOKUP the MAX back to its name
Your pivot's grand total says 663.00, but Q20 says 649.00. What is the most likely cause?
Pick one answer.
FlashcardsIndex cardsFlashcards ⚡
Card 1 of 15Worth keeping
- A report is a short list of formulas you already know: SUM, AVERAGE, SUMIFS and XLOOKUP.
- XLOOKUP(MAX(…)) turns the biggest number back into a name.
- Revenue and profit can crown different winners; always ask which one the question needs.
- Check every report two ways, such as formulas against a pivot, before you send it.
Your café report is done, and every number in it is checked. The real test is your own sheet: a budget, a sales export or a class list. Open it, ask the question a manager would ask, and guess the answer before you write the first formula.
Embed this practice on your site
Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.
Report a copyright problem with this lesson
Sources for this lesson (6)
Each fact in the lesson is marked with the number of the page it comes from.