Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Dashboard KPI Tutorial: Build One Step by Step

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can build a working KPI dashboard in Excel without add-ins: put your raw data in an Excel Table, add a few helper columns for the metrics you care about, then place PivotTables and PivotCharts on a separate sheet and connect them to slicers. The result is a single screen that updates when you refresh, and it works in Excel for Microsoft 365, Excel 2021, and Excel 2019 on Windows and Mac. The steps below use the desktop app because PivotChart and slicer options are most complete there; Excel for the web can view and edit the result but has fewer chart and slicer controls.

What You'll Need

  • Excel desktop (Microsoft 365, 2021, or 2019) on Windows or Mac. Labels can differ slightly by version and region.
  • A clean data source: one row per record, one header row, no merged cells, no blank rows inside the data, and consistent date and number formats.
  • A short list of the KPIs you actually need, for example revenue, units sold, margin, and on-time delivery rate, each with a target value.
  • Optional: a separate sheet for targets and a separate sheet for the dashboard itself.

Step-by-Step

  1. Clean and structure the data. Open your source sheet and confirm every column has a single purpose. Remove totals rows from the middle of the data, delete blank rows, and make sure dates are real dates (right-aligned by default) rather than text. If a column mixes numbers and text, fix it now; PivotTables will otherwise count instead of sum.
  2. Convert the range to an Excel Table. Select any cell in the data and press Ctrl+T (Cmd+T on Mac). Tick "My table has headers" and confirm. Give the table a clear name in Table Design > Table Name, for example tblSales. Tables expand automatically when you paste new rows, which keeps the dashboard connected to fresh data.
  3. Add helper columns for calculated KPIs. In the first empty column of the table, type a header such as Margin and enter the formula once, for example =([@Revenue]-[@Cost])/[@Revenue]. Excel fills the column for every row. Format the column as Percentage. Repeat for any other derived metric, such as On Time (a TRUE/FALSE or 1/0 column) or Days to Ship.
  4. Create a targets sheet. On a new sheet, list each KPI name in one column and its target in the next. Format the target column to match the KPI (currency, percentage, or number). You will reference these cells later so the dashboard shows actual versus target without retyping.
  5. Insert PivotTables for each KPI. Click inside the table, then choose Insert > PivotTable and place it on a new sheet named Pivot. In the PivotTable Fields pane, drag the date field to Rows, the measure (for example Revenue) to Values, and any grouping field such as Region to Columns or Filters. Right-click a date in the row area and choose Group to roll it up by Month or Quarter. Copy the PivotTable and paste it a few rows below for each additional KPI, changing the Values field each time.
  6. Set the number format on each value field. Right-click a value in the PivotTable, choose Value Field Settings > Number Format, and pick Currency or Percentage as appropriate. Do this per PivotTable; formats do not carry across copies automatically.
  7. Build PivotCharts. Click inside a PivotTable and choose Insert > PivotChart. Use a column chart for comparisons, a line chart for trends over time, and a single large number (a card-style KPI) by placing one PivotTable value in a merged cell with a large font. Move each chart onto the dashboard sheet and size it to a grid.
  8. Add slicers for filtering. Click inside a PivotTable, then PivotTable Analyze > Insert Slicer and tick the fields you want, such as Region or Product. To make one slicer control every PivotTable, right-click the slicer and choose Report Connections, then tick each PivotTable on the sheet. Repeat for additional slicers.
  9. Add actual-versus-target indicators. Next to each KPI card, add a cell that references the target from the targets sheet. Use a formula such as =IF(actual>=target,"On track","Below target") and apply conditional formatting (Home > Conditional Formatting > Highlight Cells Rules) to colour the result green or red. Keep the logic simple so it is easy to audit.
  10. Arrange the dashboard sheet. Turn off gridlines with View > Gridlines. Place the most important KPI top-left, then supporting charts, then slicers down the left or across the top. Use a consistent font size and a single accent colour. Freeze nothing on this sheet; it is a presentation layer, not a data sheet.
  11. Test with a refresh. Add a new row to the source table, then go to Data > Refresh All (or right-click a PivotTable and choose Refresh). Confirm the new row appears in every chart and that slicers still filter correctly. If a PivotTable does not update, check that its source is the table name, not a fixed range.
  12. Protect the layout. Select the dashboard sheet, then Review > Protect Sheet and allow only selecting cells. This prevents accidental edits to chart positions. Do not protect the source table unless you also unlock the cells you need to paste into.

Common Mistakes

  • Leaving totals rows inside the source data, which double-counts values in every PivotTable.
  • Using a fixed range instead of an Excel Table, so new rows never reach the dashboard.
  • Storing dates as text; grouping by month then fails silently.
  • Adding too many KPIs. Five to seven on one screen is usually enough to be readable.
  • Forgetting Report Connections, so one slicer filters only one chart and the others look wrong.
  • Formatting numbers on the worksheet instead of in Value Field Settings, which resets on refresh.

Tips

  • Keep raw data, calculations, and presentation on separate sheets. It makes debugging far faster.
  • Name key cells (Formulas > Define Name) so target formulas read clearly.
  • Use a consistent date column and group it once; copied PivotTables inherit the grouping.
  • Place slicers in a dedicated column so charts never overlap them when resized.
  • Save a copy before major layout changes; undo history is limited after closing the file.

Troubleshooting

If a chart shows counts instead of sums, the source column contains text or blanks; clean the column and refresh. If Refresh All does nothing, confirm the PivotTable source is the table name under PivotTable Analyze > Change Data Source. If a slicer is greyed out, it is not connected to that PivotTable; use Report Connections. If dates will not group, convert the column with Data > Text to Columns and finish, or use =DATEVALUE in a helper column. If the file is slow, reduce the number of PivotTables or move the source to Power Pivot rather than adding more formulas. If a formula returns #REF! after inserting columns, check that table references use structured names rather than cell addresses.

Frequently Asked Questions

Can I build this in Excel for the web?

You can view and make small edits, but PivotChart and slicer options are more limited than the desktop app. Build the dashboard on desktop, then open it in the browser for viewing.

Do I need Power Pivot or Power Query?

No for small to medium datasets. Power Query is useful when you need to combine files or clean data repeatedly, but it is optional for a first dashboard.

How often should I refresh?

Refresh after every data update, or set the file to refresh on open under Data > Queries & Connections if your source supports it. PivotTables based on a table refresh with Refresh All.

Can multiple people use the dashboard at once?

Yes if the file is stored on a shared drive or SharePoint and opened in desktop Excel, but simultaneous editing of PivotTables can conflict. Agree on one person to refresh.

Why does my KPI card show a different total from the chart?

They likely use different filters or one includes blank rows. Compare the PivotTable filter settings and confirm both use the same table.