Excel course · Lesson 32 of 34
Project: build a sales dashboard from scratch
Build a one-page interactive sales dashboard end to end: a clean table, KPI formulas, PivotTables, charts, slicers and a layout that refreshes in one click.
This project brings the course together. You will turn a raw list of orders into a one-page dashboard with headline numbers, three charts and slicers that let a manager filter by region and month. The same structure scales from eight rows to eighty thousand. Set aside about half an hour and follow each stage in order; each stage links back to the lesson where the technique was taught.
The plan
- Data sheet: the orders as an Excel table named
Orders. - Calc sheet: PivotTables that feed the charts. Users never need to see it.
- Dashboard sheet: KPI cards, charts and slicers, no gridlines, fitted to one screen.
Stage 1: prepare the data
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Date | Region | Product | Rep | Qty | Price | Amount |
| 2 | 2026-01-08 | North | Laptop | Anna | 3 | 950 | 2850 |
| 3 | 2026-01-15 | South | Monitor | Bruno | 5 | 189 | 945 |
| 4 | 2026-01-22 | East | Mouse | Chen | 40 | 12 | 480 |
| 5 | 2026-02-03 | North | Monitor | Dina | 4 | 189 | 756 |
| 6 | 2026-02-11 | East | Laptop | Chen | 2 | 950 | 1900 |
| 7 | 2026-02-19 | South | Laptop | Bruno | 1 | 950 | 950 |
| 8 | 2026-03-04 | North | Mouse | Anna | 25 | 12 | 300 |
| 9 | 2026-03-17 | East | Monitor | Chen | 6 | 189 | 1134 |
Eight orders on the Data sheet. Amount is a calculated column.
Result: 2850
- Type or paste the data on a sheet named
Data, starting inA1. - Check the basics: real dates (right-aligned), numbers not stored as text, no blank rows (Removing duplicates and cleaning data).
- Click inside and press
Ctrl+T(alsoCtrl+Ton a Mac). Name the tableOrdersin Table Design › Table Name (Excel tables and structured references). - Add the calculated column: type
AmountinG1, then=[@Qty]*[@Price]inG2. It fills down automatically. - Format Amount and Price with Home › Number › Comma Style, no decimals.
Check: the Amount column adds up to 9,315. Select G2:G9 and read the Sum in the status bar.
Stage 2: the PivotTables
- Click inside
Ordersand choose Insert › PivotTable, New Worksheet. Rename the new sheetCalc. - PivotTable 1: Region in Rows, Amount in Values. Rename it
ptRegionin PivotTable Analyze › PivotTable Name. Sort largest to smallest. - Copy the PivotTable (select it entirely,
Ctrl+C) and paste it a few columns to the right. Change the fields: Date in Rows (Excel groups it into Months; remove Years and Quarters from Rows if they appear, or group by Months only), Amount in Values. Name itptMonth. - Paste a third copy: Product in Rows, Amount in Values. Name it
ptProduct. - Copying keeps all three on the same pivot cache, which is what allows one slicer to control them all later (PivotTables: summarise thousands of rows in seconds).
| ptRegion | ptMonth | ptProduct | |||
|---|---|---|---|---|---|
| North | 3,906 | Jan | 4,275 | Laptop | 5,700 |
| East | 3,514 | Feb | 3,606 | Monitor | 2,835 |
| South | 1,895 | Mar | 1,434 | Mouse | 780 |
| Grand Total | 9,315 | Grand Total | 9,315 | Grand Total | 9,315 |
Stage 3: KPI formulas
Headline numbers go in large cards at the top of the dashboard. Calculating them with GETPIVOTDATA from the PivotTables means they respond to the slicers you will add later. On the Calc sheet, assuming ptRegion starts in A3:
Total sales =GETPIVOTDATA("Amount", Calc!$A$3)
Orders =GETPIVOTDATA("Count of Amount", Calc!$A$3)
Average order =H3/H4
Top region =Calc!A4| KPI | Value (no filter) |
|---|---|
| Total sales | 9,315 |
| Orders | 8 |
| Average order | 1,164 |
| Top region | North (3,906) |
If you prefer formulas over PivotTables, SUMIFS with criteria in cells works just as well (Counting and summing with criteria: COUNTIFS, SUMIFS, SUMPRODUCT), and in Microsoft 365 GROUPBY can build each summary table in one formula. Slicers then need to be replaced by drop-down cells (Data validation: drop-down lists and dependent lists) that the formulas read.
Stage 4: the charts
- Click inside
ptMonthand choose PivotTable Analyze › PivotChart › Line. This is the sales trend. - Click inside
ptRegionand insert a Clustered Bar PivotChart: regions ranked by sales. - Click inside
ptProductand insert a Clustered Column PivotChart. - On each chart: delete the legend (one series only), hide the field buttons (PivotChart Analyze › Field Buttons), give it a title that states the message, for example
Sales by region, and use a single colour. - Cut each chart (
Ctrl+X) and paste it on a new sheet namedDashboard.
Stage 5: KPI cards
- On the Dashboard sheet, turn off gridlines: View › Show › Gridlines.
- Reserve rows 2–5 for four cards. For each card, merge nothing: instead put a small grey label in one cell (
Total sales) and the value below it with a link, for example=Calc!H3, in a 24-pt bold font. - Format the values:
#,##0for money,0for order count. For large numbers a custom format like#,##0.0,"k"shows 9,315 as 9.3k (Number formats and custom format codes). - Draw a light border or fill around each card area so they read as blocks.
Stage 6: slicers and timeline
- Click any PivotTable on Calc and choose PivotTable Analyze › Insert Slicer; tick Region and Product.
- Choose PivotTable Analyze › Insert Timeline; tick Date.
- For each slicer and the timeline: Report Connections › tick
ptRegion,ptMonthandptProduct(PivotCharts, slicers and timelines). - Cut them and paste them on the Dashboard sheet, along the top or left side.
- Set the Region slicer to 3 columns (Slicer › Buttons › Columns) so it sits in one row.
Test it: click North on the Region slicer. Every chart updates and the Total sales card shows 3,906. Click East instead and the card shows 3,514. Clear the filter and you are back to 9,315.
Stage 7: polish and protect
- Align objects: select several with
Ctrl+click, then Shape Format › Arrange › Align › Align Top and Distribute Horizontally. - Set each chart and slicer to Don't move or size with cells (right-click › Format Chart Area › Properties), so column changes do not distort the layout.
- Hide the Calc sheet (right-click tab › Hide) and, if needed, protect the workbook structure (Protecting sheets and workbooks). Slicers still work on a protected sheet if Use PivotTable & PivotChart is allowed.
- Set the PivotTables to refresh on open: PivotTable Analyze › Options › Data › Refresh data when opening the file.
- Set the print area to the dashboard and Fit Sheet on One Page for a one-page PDF (Printing and page setup).
Stage 8: the monthly update
- Paste new orders directly below the
Orderstable; it expands automatically. - Choose Data › Refresh All (
Ctrl+Alt+F5). - Every PivotTable, chart, KPI and slicer updates. Nothing else to do.
If the orders arrive as a CSV export, go one step further: import them with Power Query into the Orders table, so the update is just Refresh All (Power Query basics: import, clean, append, merge, refresh).
Check yourself
1. Why do the three PivotTables need to share the same source?
Report Connections only lists PivotTables on the same cache.
2. Why are the orders stored as an Excel table?
A PivotTable based on a table includes rows added to the table.
3. Which function makes a KPI cell respond to the slicers?
GETPIVOTDATA reads the filtered PivotTable result.
4. With the data in this lesson, what is the total sales value?
Sum of Qty × Price over all eight orders.
5. What is the monthly update process once the dashboard is built?
Everything is connected to the table, so refreshing updates the whole dashboard.