The request

From Rachel Ramirez, Merchandise Planner
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, G8with the right valuesnot done yet - With formulas, not typed numbersnot done yet
- Use
SUMIFnot done yet
Your sheet
| A | B | C | D | E | F | G | H | I | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | order_id | product | category | revenue | category | revenue | share | ||
| 2 | 11226 | Oakley Brass Framed Print | Decor | 104.99 | Furniture | ||||
| 3 | 11226 | Upland Acacia Serving Platter | Kitchen | 38.99 | Lighting | ||||
| 4 | 11227 | Ridge Brass Bud Vase | Decor | 12.99 | Kitchen | ||||
| 5 | 11228 | Cove Wool Lumbar Pillow | Textiles | 211.96 | Textiles | ||||
| 6 | 11228 | Vale Cashmere-Blend Knit Throw | Textiles | 113.94 | Decor | ||||
| 7 | 11228 | Pacifica Steel Planter | Outdoor | 289.00 | Outdoor | ||||
| 8 | 11228 | Linen Velvet Headboard | Furniture | 716.00 | Total | ||||
| 9 | 11229 | Ridge Ceramic Chandelier | Lighting | 159.00 | |||||
| 10 | 11230 | Avery Leather Bed Frame | Furniture | 449.00 | |||||
| 11 | 11230 | Fairhaven Brass Wall Sconce | Lighting | 756.00 | |||||
| 12 | 11230 | Ridge Ceramic Chandelier | Lighting | 159.00 | |||||
| 13 | 11231 | Harbor Wool Knit Throw | Textiles | 231.92 | |||||
| 14 | 11231 | Driftwood Percale Area Rug | Textiles | 111.96 | |||||
| 15 | 11231 | Oakley Brass Framed Print | Decor | 209.98 | |||||
| 16 | 11231 | Thatcher Cast Iron Bowl Set | Kitchen | 67.96 | |||||
| 17 | 11231 | Ridge Soy Wax Vase | Decor | 436.00 | |||||
| 18 | 11232 | Cove Jute Duvet Cover | Textiles | 219.00 | |||||
| 19 | 11232 | Delancey Cashmere-Blend Duvet Cover | Textiles | 169.00 | |||||
| 20 | 11232 | Nantucket Brass Wall Mirror | Decor | 35.98 | |||||
| 21 | 11233 | Delancey Brass Vase | Decor | 19.99 | |||||
| 22 | 11233 | Delancey Jute Area Rug | Textiles | 30.99 | |||||
| 23 | 11233 | Thatcher Cast Iron Bowl Set | Kitchen | 16.99 | |||||
| 24 | 11233 | Rowan Ceramic Chandelier | Lighting | 189.00 | |||||
| 25 | 11233 | Cedar Marble Bud Vase | Decor | 179.00 | |||||
| 26 | 11233 | Tidewater Stainless Wine Glasses | Kitchen | 169.00 | |||||
| 27 | 11234 | Oakley Brass Framed Print | Decor | 104.99 | |||||
| 28 | 11234 | Elm Brass Floor Mirror | Decor | 131.97 | |||||
| 29 | 11235 | Fairhaven Stoneware Cutting Board | Kitchen | 70.99 | |||||
| 30 | 11235 | Bramble Ceramic Floor Lamp | Lighting | 31.99 | |||||
| 31 | 11236 | Hazel Linen Throw Pillow | Textiles | 41.98 | |||||
| 32 | 11236 | Glen Stoneware Carafe | Kitchen | 60.99 | |||||
| 33 | 11236 | Vale Enamel Bowl Set | Kitchen | 23.98 | |||||
| 34 | 11237 | Elm Brass Floor Mirror | Decor | 43.99 | |||||
| 35 | 11238 | Vale Cashmere-Blend Knit Throw | Textiles | 18.99 | |||||
| 36 | 11238 | Fairhaven Brass Wall Sconce | Lighting | 378.00 | |||||
| 37 | 11239 | Glen Cotton Runner Rug | Textiles | 84.99 | |||||
| 38 | 11239 | Birch Brass Floor Mirror | Decor | 20.99 | |||||
| 39 | 11240 | Oakley Brass Framed Print | Decor | 314.97 | |||||
| 40 | 11240 | Cove Wool Lumbar Pillow | Textiles | 105.98 | |||||
| 41 | 11240 | Oakley Brass Table Lamp | Lighting | 398.00 | |||||
| 42 | 11241 | Thatcher Oak Candle | Decor | 17.99 | |||||
| 43 | 11241 | Oakley Brass Framed Print | Decor | 104.99 | |||||
| 44 | 11241 | Upland Percale Lumbar Pillow | Textiles | 1,908.00 | |||||
| 45 | 11242 | Nantucket Brass Wall Mirror | Decor | 35.98 | |||||
| 46 | 11242 | Monroe Glass Desk Lamp | Lighting | 29.99 | |||||
| 47 | 11242 | Cove Wool Lumbar Pillow | Textiles | 52.99 | |||||
| 48 | |||||||||
| 49 |
Loading the editor…
Reference solution
Mote checks your result
Press Check. Each right cell becomes a firefly in your lantern.
What Rachel gets, and why
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:
- Select
F1:G7(labels and values, with the headers). - Insert → Charts → Column (or Bar). Excel uses the first column as categories and names the
series after the header
revenue. - 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.
- 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:D47gives 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.
Lantern lit!
Practised: chartscolumn chartpie chartchart datasumif
- Solved
- No hints
- First run
