Lesson 8 of 8 · see all lessons
  1. Formulas from zero

    1. 1. Excel basics: cells, ranges and your first SUM formula
    2. 2. Relative vs absolute references in Excel ($A$1)
    3. 3. How to use the IF function in Excel (and nested IF)
  2. Answer questions with conditions and lookups

    1. 4. SUMIFS and COUNTIFS in Excel: add and count with conditions
    2. 5. How to use XLOOKUP in Excel (and VLOOKUP when you have to)
  3. Organize and summarize the month

    1. 6. How to sort, filter and make a table in Excel
    2. 7. How to make a pivot table in Excel
    3. 8. Excel practice: build a monthly sales report

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.

[1][4]

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.

[15]

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.

[6][15]

excel
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)
Expected T13:T20: Espresso 47.50, Latte 206.50, Cappuccino 87.75, Green Tea 12.00, Chai 36.00, Croissant 57.75, Muffin 39.00, Sandwich 162.50. Q28 shows Latte.

What should =SUM(T13:T20) show, and why is it worth typing?

Pick one answer.

Part 3: the best seller, two ways

excel
S23: Staff T23: Revenue U23: Profit
S24: 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: Chloe
P29: 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)
Expected: revenue Ana 226.75, Ben 198.50, Chloe 223.75; profit Ana 148.15, Ben 134.00, Chloe 152.50. Q29 Ana, Q30 Chloe.

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.

[26][34]

text
Row Labels Sum of Total
Latte 206.50
Sandwich 162.50
Cappuccino 87.75
Croissant 57.75
Espresso 47.50
Muffin 39.00
Chai 36.00
Green Tea 12.00
Grand Total 649.00
Expected pivot, sorted largest to smallest. Latte and Sandwich together are more than half of March revenue.

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.

  1. Confirm every number with a pivot
  2. Total each item with one SUMIFS filled down
  3. Write the headline totals with SUM, COUNT and AVERAGE
  4. Divide SUMIFS results by revenue for the shares
  5. Check the item totals add up to revenue
  6. 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 15

Worth keeping

  1. A report is a short list of formulas you already know: SUM, AVERAGE, SUMIFS and XLOOKUP.
  2. XLOOKUP(MAX(…)) turns the biggest number back into a name.
  3. Revenue and profit can crown different winners; always ask which one the question needs.
  4. 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.

  1. [1]Microsoft Support: AVERAGE function
  2. [4]Microsoft Support: SUM function
  3. [6]Microsoft Support: XLOOKUP function
  4. [15]Microsoft Support: SUMIFS function
  5. [26]Microsoft Support: Create a PivotTable to analyze worksheet data
  6. [34]Microsoft Support: Sort data in a PivotTable or PivotChart