1. Lighthouse

Level 1 · Revenue by category as a column chart

The request

From Rachel Ramirez, Merchandise Planner

“For Monday's planning meeting I want one picture of last Thursday, October 9: revenue per category, and each category's share of the day. The lines are in the sheet. Can you build the numbers so the chart draws itself?”

Your goal

The six categories are in F2:F7. In G2:G7, add up each category's revenue with SUMIF over the category column (C2:C47) and the revenue column (D2:D47); write it once in G2 and fill down. In G8, total G2:G7. In H2:H7, each category's share of that total (G2 divided by G8, with G8 locked).

  • Fill G2:H7, G8 with the right valuesnot done yet
  • With formulas, not typed numbersnot done yet
  • Use SUMIFnot done yet

Your sheet

Excel
The sheet for this level
ABCDEFGHI
1order_idproductcategoryrevenuecategoryrevenueshare
211226Oakley Brass Framed PrintDecor104.99Furniture
311226Upland Acacia Serving PlatterKitchen38.99Lighting
411227Ridge Brass Bud VaseDecor12.99Kitchen
511228Cove Wool Lumbar PillowTextiles211.96Textiles
611228Vale Cashmere-Blend Knit ThrowTextiles113.94Decor
711228Pacifica Steel PlanterOutdoor289.00Outdoor
811228Linen Velvet HeadboardFurniture716.00Total
911229Ridge Ceramic ChandelierLighting159.00
1011230Avery Leather Bed FrameFurniture449.00
1111230Fairhaven Brass Wall SconceLighting756.00
1211230Ridge Ceramic ChandelierLighting159.00
1311231Harbor Wool Knit ThrowTextiles231.92
1411231Driftwood Percale Area RugTextiles111.96
1511231Oakley Brass Framed PrintDecor209.98
1611231Thatcher Cast Iron Bowl SetKitchen67.96
1711231Ridge Soy Wax VaseDecor436.00
1811232Cove Jute Duvet CoverTextiles219.00
1911232Delancey Cashmere-Blend Duvet CoverTextiles169.00
2011232Nantucket Brass Wall MirrorDecor35.98
2111233Delancey Brass VaseDecor19.99
2211233Delancey Jute Area RugTextiles30.99
2311233Thatcher Cast Iron Bowl SetKitchen16.99
2411233Rowan Ceramic ChandelierLighting189.00
2511233Cedar Marble Bud VaseDecor179.00
2611233Tidewater Stainless Wine GlassesKitchen169.00
2711234Oakley Brass Framed PrintDecor104.99
2811234Elm Brass Floor MirrorDecor131.97
2911235Fairhaven Stoneware Cutting BoardKitchen70.99
3011235Bramble Ceramic Floor LampLighting31.99
3111236Hazel Linen Throw PillowTextiles41.98
3211236Glen Stoneware CarafeKitchen60.99
3311236Vale Enamel Bowl SetKitchen23.98
3411237Elm Brass Floor MirrorDecor43.99
3511238Vale Cashmere-Blend Knit ThrowTextiles18.99
3611238Fairhaven Brass Wall SconceLighting378.00
3711239Glen Cotton Runner RugTextiles84.99
3811239Birch Brass Floor MirrorDecor20.99
3911240Oakley Brass Framed PrintDecor314.97
4011240Cove Wool Lumbar PillowTextiles105.98
4111240Oakley Brass Table LampLighting398.00
4211241Thatcher Oak CandleDecor17.99
4311241Oakley Brass Framed PrintDecor104.99
4411241Upland Percale Lumbar PillowTextiles1,908.00
4511242Nantucket Brass Wall MirrorDecor35.98
4611242Monroe Glass Desk LampLighting29.99
4711242Cove Wool Lumbar PillowTextiles52.99
48
49

Loading the editor…

    ResultPress Check to compare G2:H7, G8

    Mote checks your result

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

    The lesson

    A chart never reads raw data well. Forty-six order lines is too much for a picture, and Excel would draw forty-six bars. What a chart needs is a small summary table: one row per bar, one column per series. Building that table is the analyst’s job; the chart is the last step.

    Column or bar: comparing categories

    When the question is “which category is biggest?”, the answer is a column chart (vertical bars) or a bar chart (horizontal bars). Our eyes compare lengths that start from the same baseline very accurately, so this is the safest chart there is.

    Use When
    Column a few categories with short names, or periods in order
    Bar many categories, or long names (product names read better sideways)

    Both start the value axis at zero, and they must: a bar’s length is its value.

    Build the table behind the chart

    The categories are already listed in F2:F7. For each one you need the sum of revenue where the category matches, which is exactly SUMIF:

    G2   =SUMIF($C$2:$C$47,F2,$D$2:$D$47)

    Fill it down to G7. Lock the two data ranges, leave F2 relative so each row reads its own category. Then the total and the shares:

    G8   =SUM(G2:G7)
    H2   =G2/$G$8

    G8 should come to 9,080.38, and the six shares in H2:H7 should add up to 100%. If they don’t, a category name in F doesn’t match the data exactly, or a range slid when you filled down.

    Making the chart in Excel

    The page draws the chart under the grid for practice. In Excel:

    1. Select F1:G7 (labels and values, with the headers).
    2. Insert → Charts → Column (or Bar). Excel uses the first column as categories and names the series after the header revenue.
    3. With the chart selected, the Chart Design tab appears. Add Chart Element adds a Chart Title, Axis Titles (“Revenue, $”), Data Labels (the number on each bar) and the Legend. With one series, delete the legend: it only repeats the title.
    4. Sort the summary table largest to smallest first (Data → Sort) so the bars descend. A ranked chart answers “which is biggest?” without anyone hunting.

    In Google Sheets it is Insert → Chart, and the same options live in the Chart editor’s Customize tab.

    Same numbers as a pie

    Use the Chart type menu above the chart to switch to Pie. A pie answers a different question: “what share of the whole is each part?”. It works here because there are only six slices and they really are parts of one total (the day’s revenue). In Excel, select F1:G7 and use Insert → Charts → Pie, then add data labels as percentages in Chart Design.

    What the chart shows

    Textiles led the day with 3,301.70, 36.4% of the 9,080.38 total, followed by Lighting (2,100.98, 23.1%) and Decor (1,774.80, 19.5%). Outdoor brought in only 289.00 (3.2%), which is normal for October. Read Furniture carefully: 1,165.00 (12.8%) came from just 2 order lines, while Decor needed 15 lines for its total. One day is a small sample, and a single sofa can move a category by a thousand dollars. Before anyone plans stock on this, chart a month.

    Common mistakes

    • Charting the raw lines. Selecting C1:D47 gives 46 bars, one per line, not one per category.
    • Unlocked ranges. =SUMIF(C2:C47,F2,D2:D47) filled down shrinks the ranges row by row.
    • A pie for things that are not parts of one whole, or a pie with a dozen slices. Use a bar chart there.
    • Leaving the default title. “revenue” tells a reader nothing. Say what, where and when.

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