Module 3 · 60 min

Stage 3 — Explore & summarize

Quick looks with filters, then the formulas that answer the everyday questions.

Where we are: Receive & clean → Structure & enrich → Explore & summarize → Pivot & rank → Present.

The highest-leverage stage. First you explore with filters and subtotals (no formulas), then you summarize with the conditional trio — SUMIFS, COUNTIFS, AVERAGEIFS — and build the sales KPIs you actually get asked for. Open module-3.xlsx; the Sales table is already enriched (it has SalesManager and BrandManager). Put each answer in column C of the Exercises sheet.

Part A — Explore fast (no formulas)

AutoFilter

Turn filters on with Ctrl + Shift + L. Filter InvoiceType = "Sales", add Area = "Deira", or Category = "HPC". Filters hide rows; copying a filtered table copies only the visible rows.

Read the Status Bar

Select the visible SalesValue cells and look bottom-right: Excel shows Sum, Count, Average instantly. Filter, select, read.

SUBTOTAL — totals that respect the filter

=SUM(…) always adds every row; SUBTOTAL adds only the visible ones:

=SUBTOTAL(9,  M2:M2001)    // SUM of visible SalesValue
=SUBTOTAL(103, A2:A2001)   // COUNT of visible lines
=SUBTOTAL(101, M2:M2001)   // AVERAGE of visible

For automatic per-group totals, Data → Subtotal (sort by the group column first; works on a plain range, not a Table).

Part B — Summarize with the conditional trio

The pattern is always: the column to total, then pairs of (criteria column, criteria value) — all conditions must be true.

=SUMIFS(Sales[SalesValue], Sales[Area], "Deira")
=SUMIFS(Sales[SalesValue], Sales[Area], "Deira", Sales[Category], "Food")
=COUNTIFS(Sales[InvoiceType], "Return")
=AVERAGEIFS(Sales[SalesValue], Sales[Category], "HPC")

Tip: put the criteria in cells (F1 = "Deira") and reference them — =SUMIFS(Sales[SalesValue], Sales[Area], F1) — so you change the filter by typing, not by rewriting formulas.

Part C — Build the sales KPIs

Because returns carry negative values, plain SUM already gives you net:

Net sales     =SUM(Sales[SalesValue])
Gross sales   =SUMIFS(Sales[SalesValue], Sales[InvoiceType], "Sales")
Returns       =SUMIFS(Sales[SalesValue], Sales[InvoiceType], "Return")   (a negative number)
Return rate   =-SUMIFS(Sales[SalesValue], Sales[InvoiceType], "Return")
               / SUMIFS(Sales[SalesValue], Sales[InvoiceType], "Sales")
Avg sale      =AVERAGEIFS(Sales[SalesValue], Sales[InvoiceType], "Sales")

Sales by manager — using the enriched columns

Stage 2 added SalesManager and BrandManager to every row, so now you can total by them directly:

=SUMIFS(Sales[SalesValue], Sales[BrandManager], "Imran Sheikh")   // a brand manager's net sales
=SUMIFS(Sales[SalesValue], Sales[SalesManager], "Tariq Aziz")     // a sales manager's team

Quota attainment — clean × enrich × summarize together

A rep’s net sales ÷ their quota, with the quota pulled from Reps:

=SUMIFS(Sales[SalesValue], Sales[SalesRep], "Mohammed Saleh")
 / VLOOKUP("Mohammed Saleh", Reps, 3, FALSE)

Two mechanics you’ll lean on

  • Fill down fast: double-click the fill handle to copy a formula down the column. In a Table, typing one formula auto-fills it for you.
  • Absolute vs relative refs: lock a cell that must not move with $ (e.g. $B$1). Press F4 while editing to cycle A1 → $A$1 → A$1 → $A1.

Hand-off

You can answer almost any single question now. When you need to slice many ways at once — Area × Category × quarter — formulas get tedious. That’s what PivotTables are for.

Further learning — official Microsoft documentation

Functions

Features & how-tos

Take the Stage 3 quiz, then continue to Stage 4 — Pivot & rank.