Dashboard Mode - Dropdown menus
Goal
Help a small store manager choose a product category from a dropdown menu to see the total sales for that category.
Help a small store manager choose a product category from a dropdown menu to see the total sales for that category.
| Product | Category | Sales |
|---|---|---|
| Apples | Fruits | 120 |
| Bananas | Fruits | 150 |
| Carrots | Vegetables | 100 |
| Broccoli | Vegetables | 80 |
| Milk | Dairy | 200 |
| Cheese | Dairy | 180 |
| Bread | Bakery | 90 |
=SUMIF(B2:B8, E2, C2:C8)+----------------------+------------------+ | Select Category: [▼] | | | (E2) | | +----------------------+------------------+ | Total Sales for: | [Total Sales] | | (D4) | (E4) | +----------------------+------------------+
The dropdown menu in cell E2 lets the user pick a category. When the user changes this selection, the formula in E4 recalculates the total sales for that category automatically. This updates the dashboard number instantly without extra steps.
If you select "Dairy" from the dropdown in E2, what number appears in E4?
Answer: 380 (200 for Milk + 180 for Cheese)