1. Lighthouse

Level 1 · Your first PivotTable

The request

From Mei Gonzalez, Buyer

“I'm placing the July orders tomorrow and want to see what actually sold on June 18. Can you turn these 31 completed order lines into revenue per category, with a total at the bottom?”

Your goal

Click PivotTable and build a PivotTable at H1: category in Rows, revenue in Values summarised as a Sum. It fills H1:I8: one row per category and a Grand Total.

  • Fill H1:I8 with the right valuesnot done yet

Your sheet

Excel
The sheet for this level
ABCDEFGHIJK
1order_idproductcategorychannelrevenue
29933Harbor Oak Floor MirrorDecorweb44.99
39933Tidewater Concrete String LightsOutdoorweb379.00
49934Alder Linen SideboardFurnitureweb440.30
59935Rowan Cashmere-Blend Throw BlanketTextilesmarketplace17.99
69936Vale Enamel Bowl SetKitchenweb11.99
79937Fairhaven Brass Wall SconceLightingapp756.00
89937Harbor Wool Knit ThrowTextilesapp28.99
99938Northfield Teak Charcoal GrillOutdoorweb323.94
109938Ashford Linen Pendant LightLightingweb349.00
119938Weston Cashmere-Blend QuiltTextilesweb155.94
129939Thatcher Oak CandleDecorweb17.99
139940Tidewater Concrete String LightsOutdoorapp322.15
149942Harbor Wool Knit ThrowTextilesapp221.77
159942Ridge Soy Wax VaseDecorapp185.30
169942Weston Cashmere-Blend QuiltTextilesapp88.37
179943Hazel Linen Throw PillowTextilesmarketplace20.99
189944Tidewater Concrete String LightsOutdoorweb379.00
199944Monroe Glass Desk LampLightingweb59.98
209944Pine Glass Candle Holder SetDecorweb25.99
219944Oakley Oak BookcaseFurnitureweb999.00
229945Maple Aluminum Patio Dining SetOutdoorapp1,099.00
239945Sable Concrete Adirondack ChairOutdoorapp50.99
249945Glen Stoneware CarafeKitchenapp243.96
259945Pine Cast Iron CarafeKitchenapp867.00
269945Pine Glass Candle Holder SetDecorapp25.99
279946Marlow Concrete Charcoal GrillOutdoorapp187.98
289946Delancey Brass VaseDecorapp19.99
299946Monroe Glass Desk LampLightingapp119.96
309946Harbor Acacia Solar LanternOutdoorapp1,156.00
319946Delancey Cashmere-Blend Duvet CoverTextilesapp169.00
329946Ridge Brass Bud VaseDecorapp25.98
33
34
35
36
37

Loading the editor…

    ResultPress Check to compare H1:I8

    Mote checks your result

    Press Check. Each right cell becomes a firefly in your lantern.

    The lesson

    A PivotTable turns a long table into a short summary without a single formula. You tell it which field to group by and which numbers to add up; it finds every distinct value, adds up each group and puts a total underneath. In Excel it lives under Insert → PivotTable.

    Rows and Values

    Every PivotTable answers a sentence like “revenue per category”. The two halves map to two boxes:

    Box What goes in Here
    Rows the field you group by: one row per distinct value category
    Values the numbers to summarise for each group revenue, as a Sum

    The sheet holds the 31 completed order lines from June 18 in A1:E32. Click PivotTable under the grid, pick category for Rows and revenue for Values, and keep “Summarise values by” on Sum. The table appears at H1, where the ticket asked for it.

    In Excel you make the same choices by dragging fields into the boxes of the PivotTable Fields pane, after choosing the source range and “Existing worksheet: H1” in the Create PivotTable dialog.

    Reading the result

    category      Sum of revenue
    Decor               346.23
    Furniture         1,439.30
    Kitchen           1,122.95
    Lighting          1,284.94
    Outdoor           3,898.06
    Textiles            703.05
    Grand Total       8,794.53

    Three things to notice:

    • the categories are sorted A→Z, not by size. Excel does the same; you can sort by value later;
    • the value header names the summary: Sum of revenue. Switch to Count and it says Count of revenue;
    • Grand Total is the sum of every line, which is also the sum of the category rows.

    Outdoor brings in 3,898.06, almost half the day, from 8 lines. A buyer reads that as “patio season is here”.

    Layouts and refresh

    Excel’s default layout (“compact form”) labels the first column Row Labels. This sheet shows the field name instead, which is what you get in Excel with Design → Report Layout → Show in Tabular Form. The numbers are identical.

    One honest difference: here the PivotTable recalculates as soon as the data changes. In Excel and Google Sheets a pivot does not update by itself when you edit the source. You press Refresh (Alt+F5 in Excel), and if you added rows below the data you also widen the source range, or format the data as a table first (Ctrl+T) so it grows on its own.

    Common mistakes

    • Numbers in Rows. revenue in Rows lists every distinct amount. Rows is for labels.
    • Forgetting to refresh. A pivot that looks right but was built before the last data fix is the most common stale number in a monthly report.
    • Including a total row in the source. If the export ends with a “Total” line, the pivot counts it as one more record and doubles the Grand Total. Keep the source to data rows only.
    • Trusting Sum blindly. If a column holds numbers stored as text, Excel quietly switches the default to Count. Always read the value header.

    Pick what may run on this site. You can change this any time from "Cookie settings" at the bottom of every page.