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.

Advanced 30 min read

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.
Tip. Separating data, calculations and presentation is the single most important design decision. It keeps the dashboard tidy, and you can replace the data without touching the layout.

Stage 1: prepare the data

G2fx=[@Qty]*[@Price]
ABCDEFG
1DateRegionProductRepQtyPriceAmount
22026-01-08NorthLaptopAnna39502850
32026-01-15SouthMonitorBruno5189945
42026-01-22EastMouseChen4012480
52026-02-03NorthMonitorDina4189756
62026-02-11EastLaptopChen29501900
72026-02-19SouthLaptopBruno1950950
82026-03-04NorthMouseAnna2512300
92026-03-17EastMonitorChen61891134

Eight orders on the Data sheet. Amount is a calculated column.

Result: 2850

  1. Type or paste the data on a sheet named Data, starting in A1.
  2. Check the basics: real dates (right-aligned), numbers not stored as text, no blank rows (Removing duplicates and cleaning data).
  3. Click inside and press Ctrl+T (also Ctrl+T on a Mac). Name the table Orders in Table Design › Table Name (Excel tables and structured references).
  4. Add the calculated column: type Amount in G1, then =[@Qty]*[@Price] in G2. It fills down automatically.
  5. 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

  1. Click inside Orders and choose Insert › PivotTable, New Worksheet. Rename the new sheet Calc.
  2. PivotTable 1: Region in Rows, Amount in Values. Rename it ptRegion in PivotTable Analyze › PivotTable Name. Sort largest to smallest.
  3. 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 it ptMonth.
  4. Paste a third copy: Product in Rows, Amount in Values. Name it ptProduct.
  5. 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).
ptRegionptMonthptProduct
North3,906Jan4,275Laptop5,700
East3,514Feb3,606Monitor2,835
South1,895Mar1,434Mouse780
Grand Total9,315Grand Total9,315Grand Total9,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:

Formula
Total sales      =GETPIVOTDATA("Amount", Calc!$A$3)
Orders           =GETPIVOTDATA("Count of Amount", Calc!$A$3)
Average order    =H3/H4
Top region       =Calc!A4
Put these in Calc!H3:H6. For Orders, add Amount to ptRegion's Values a second time and set it to Count. The top region is simply the first row label (A4) because ptRegion is sorted largest first.
KPIValue (no filter)
Total sales9,315
Orders8
Average order1,164
Top regionNorth (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

  1. Click inside ptMonth and choose PivotTable Analyze › PivotChart › Line. This is the sales trend.
  2. Click inside ptRegion and insert a Clustered Bar PivotChart: regions ranked by sales.
  3. Click inside ptProduct and insert a Clustered Column PivotChart.
  4. 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.
  5. Cut each chart (Ctrl+X) and paste it on a new sheet named Dashboard.
Tip. Choose one accent colour for the dashboard and a neutral grey for everything else. The less colour you use, the more the important numbers stand out (Charts: choosing the right chart, combo charts and sparklines).

Stage 5: KPI cards

  1. On the Dashboard sheet, turn off gridlines: View › Show › Gridlines.
  2. 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.
  3. Format the values: #,##0 for money, 0 for order count. For large numbers a custom format like #,##0.0,"k" shows 9,315 as 9.3k (Number formats and custom format codes).
  4. Draw a light border or fill around each card area so they read as blocks.

Stage 6: slicers and timeline

  1. Click any PivotTable on Calc and choose PivotTable Analyze › Insert Slicer; tick Region and Product.
  2. Choose PivotTable Analyze › Insert Timeline; tick Date.
  3. For each slicer and the timeline: Report Connections › tick ptRegion, ptMonth and ptProduct (PivotCharts, slicers and timelines).
  4. Cut them and paste them on the Dashboard sheet, along the top or left side.
  5. 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

  1. Paste new orders directly below the Orders table; it expands automatically.
  2. Choose Data › Refresh All (Ctrl+Alt+F5).
  3. 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).

Watch out. If a new product or region does not appear in the slicer after a refresh, check that the new rows really are inside the table (the blue table border includes them) and that the slicer setting Hide items with no data is not hiding it.

Check yourself

1. Why do the three PivotTables need to share the same source?

2. Why are the orders stored as an Excel table?

3. Which function makes a KPI cell respond to the slicers?

4. With the data in this lesson, what is the total sales value?

5. What is the monthly update process once the dashboard is built?

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 12 KB