Mini Exercises — Excel for Analytics¶
A consolidated practice set bringing together formulas, pivot tables, lookups, conditional formatting, and shortcuts. Build a small analysis from start to finish — the way you would on the job.
The Dataset¶
Create a sheet with this sample sales data (or use any orders dataset you have). Type the headers and a few rows, or paste a larger set.
| order_id | customer_id | product | category | region | quantity | unit_price | status | order_date |
|---|---|---|---|---|---|---|---|---|
| O001 | C001 | Headphones | Electronics | West | 2 | 149.00 | completed | 2024-01-05 |
| O002 | C003 | Standing Desk | Furniture | East | 1 | 389.00 | completed | 2024-01-07 |
| O003 | C002 | Analytics Book | Books | West | 3 | 49.99 | pending | 2024-01-09 |
| O004 | C001 | Yoga Mat | Sports | South | 1 | 35.99 | completed | 2024-01-10 |
| O005 | C004 | Headphones | Electronics | East | 1 | 149.00 | cancelled | 2024-01-11 |
| O006 | C003 | Coffee Maker | Kitchen | West | 2 | 89.99 | completed | 2024-01-14 |
Also create a small Products lookup sheet: product, cost_price.
Exercise Set 1 — Formulas¶
- Add a
totalcolumn:quantity × unit_price. - Add a
net_totalcolumn applying a 10% discount only to completed orders (useIF). - In a summary area, calculate: total revenue, average order value, count of completed orders.
- Use
SUMIFSto total revenue for completed orders in the West region. - Use
COUNTIFSto count cancelled Electronics orders.
Hints
Exercise Set 2 — Lookups¶
- Add a
costcolumn by looking up each product'scost_pricefrom the Products sheet usingXLOOKUP(or VLOOKUP). - Add a
profitcolumn:total − (quantity × cost_price). - Add a "Not found" fallback for any product missing from the lookup table.
Hints
Exercise Set 3 — Pivot Table¶
- Create a pivot table: revenue by region (rows) and category (columns).
- Add a Year/Month grouping on the date field.
- Show values as % of grand total.
- Add a slicer for status and connect it.
Exercise Set 4 — Conditional Formatting¶
- Highlight all orders with
total > 200in green. - Highlight the entire row of any cancelled order in light red (formula rule).
- Apply a colour scale to the pivot table to create a revenue heatmap.
Exercise Set 5 — Speed Challenge¶
- Rebuild the total and net_total columns using only the keyboard:
Ctrl+Arrowto navigate,F2to edit,Ctrl+Dto fill down,F4for references. - Convert your data to a Table with
Ctrl+Tand confirm the pivot auto-updates when you add a row.
Capstone Mini-Task¶
Put it all together. Build a one-page Sales Summary that includes:
- [ ] KPI cells: total revenue, total profit, completed order count, average order value
- [ ] A pivot table of revenue by region and category
- [ ] A lookup pulling in cost and calculating profit per order
- [ ] Conditional formatting highlighting cancelled orders and high-value sales
- [ ] A slicer to filter by region
This is a complete, if small, Excel analysis — exactly the kind of deliverable you'd produce in week one of an analyst job.
Previous: 05-excel-shortcuts | Next: 07-interview-questions