Smart Systems for Home

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

How to Create a KPI in Excel 2016: 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

To create a KPI in Excel 2016, you build a calculated value, define target and threshold levels, then apply the built-in KPI indicator set (or a custom conditional format) so the cell shows a coloured status icon. The fastest route is: prepare your data, calculate the KPI value, set up a target, then use Conditional Formatting > Icon Sets > More Rules with the 'Format all cells based on their values' option, or use the dedicated KPI feature if you have Excel 2016 Professional Plus. This guide walks through both approaches, plus the common pitfalls and fixes.

What You'll Need

  • Excel 2016 (desktop, Windows or Mac). The KPI feature under the Analyze tab is only in Professional Plus; the conditional-formatting method works in every edition.
  • A table of raw data (sales, response times, defect counts, etc.) with a column you can aggregate.
  • A target value for each KPI — either a fixed number or a cell reference.
  • Basic familiarity with formulas such as SUM, AVERAGE, IF and division.

Menu labels can differ slightly by version, edition and region, so if a tab name looks different, look for the closest equivalent.

Step-by-Step

  1. Lay out your data. Put raw figures in a clean table with headers (for example Date, Region, Sales). Select the range and press Ctrl+T (Cmd+T on Mac) to convert it to an Excel Table — this makes formulas and charts expand automatically as you add rows.
  2. Create a KPI summary area. On a separate sheet, list each KPI in column A (e.g. 'Monthly Sales'), the actual value in column B, and the target in column C. Leave column D for the status.
  3. Calculate the actual value. In B2 enter a formula such as =SUM(Table1[Sales]) or =AVERAGE(Table1[ResponseTime]). Use structured references so the formula follows the table. Press Enter and confirm the number looks right.
  4. Enter the target. Type the target number in C2, or reference a cell that holds it (e.g. =Targets!B2). Keeping targets in cells lets you change them without editing formulas.
  5. Calculate the percentage of target. In D2 enter =B2/C2 and format the cell as a percentage (Home > Number Format > Percentage). This is the value the icon will judge.
  6. Apply a KPI indicator with conditional formatting. Select D2, go to Home > Conditional Formatting > Icon Sets, and pick a set such as the three traffic lights. Then choose Conditional Formatting > Manage Rules > Edit Rule.
  7. Set the thresholds. In the rule dialog, change 'Type' to Number (or Percent) and enter your cut-offs — for example green at 100%, amber at 90%, red below 90%. Tick 'Show Icon Only' if you want just the icon. Click OK twice.
  8. Copy the rule down. Use the Format Painter or copy D2 and paste to the rest of the KPI rows. Relative references adjust automatically.
  9. Optional — use the built-in KPI feature (Professional Plus only). Select your summary table, go to the Analyze tab (or the Power Pivot tab if the data model is loaded), click KPIs > New KPI, choose the base field, set the target and the status thresholds, then pick an icon style. This creates a KPI that can be displayed in a PivotTable or Power View report.
  10. Add a visual. Select the KPI values and insert a chart (Insert > Chart). A column chart with the target as a second series, or a simple data bar via Conditional Formatting > Data Bars, makes the status readable at a glance.
  11. Test and lock it down. Change a raw figure and confirm the KPI icon updates. Protect the sheet (Review > Protect Sheet) if others will use the file, leaving input cells unlocked.

Common Mistakes

  • Dividing by zero or blank targets. This produces #DIV/0!. Wrap the formula in =IFERROR(B2/C2,"") or ensure every target cell is filled.
  • Hard-coding thresholds in the rule. If targets change often, use Percent type thresholds rather than fixed numbers so the rule stays valid.
  • Applying the rule to the wrong range. If the icon appears on the wrong rows, check the 'Applies to' box in Manage Rules — it should cover exactly your KPI column.
  • Mixing text and numbers. A number stored as text (often imported from CSV) will break the percentage calculation. Use Data > Text to Columns or VALUE() to convert.
  • Expecting the Analyze tab in every edition. Excel 2016 Home and Student does not include the KPI/Power Pivot features; use the conditional-formatting method instead.
  • Forgetting that icon order matters. In the rule dialog the first icon applies to the highest values. Reversing the order gives green for bad results.

Tips

  • Keep one KPI per row and one target per row — a tidy layout makes rules and charts far easier to maintain.
  • Use named ranges (Formulas > Define Name) for targets so formulas read like =B2/SalesTarget.
  • Combine an icon set with a data bar or sparkline for a dashboard that reads well in print and on screen.
  • Set the conditional-formatting rule to 'Stop If True' when stacking multiple rules, so a red status does not get overridden by a later rule.
  • Refresh PivotTable-based KPIs (Data > Refresh All) after changing source data, or the icon will show stale results.

Troubleshooting

The icon does not appear. Check that the cell contains a number, not text. Select the cell, look at the status bar — if it shows nothing, the value is text. Convert it with VALUE() or re-enter it.

All icons are the same colour. Your thresholds are probably outside the data range. Open Manage Rules and compare the threshold numbers with the actual min and max in the column.

#DIV/0! errors. A target cell is blank or zero. Fill it or wrap the formula in IFERROR.

The Analyze tab is missing. Your edition does not include the KPI feature. Use Conditional Formatting > Icon Sets instead — the visual result is the same.

Icons do not update after data changes. Press F9 to recalculate, or check Formulas > Calculation Options is set to Automatic. For PivotTable KPIs, use Refresh All.

The rule applies to the wrong cells. In Manage Rules, correct the 'Applies to' range, then re-copy the rule down.

Frequently Asked Questions

Can I create a KPI in any edition of Excel 2016?

Yes, using conditional formatting with icon sets. The dedicated KPI feature under the Analyze tab is limited to Professional Plus.

Do I need Power Pivot for KPIs?

No. Power Pivot adds the KPI feature, but conditional formatting works without it.

How many threshold levels can a KPI have?

Icon sets support three, four or five icons. Choose the set first, then set that many thresholds in the rule.

Can I use a formula as the target?

Yes. Point the target cell at a formula or another sheet. The percentage calculation will update automatically.

Why does my KPI show red when the value looks fine?

The icon order is likely reversed or the threshold type is set to Number instead of Percent. Check both in the Edit Rule dialog.

Can I share the KPI dashboard with someone on an older Excel version?

Conditional-formatting icon sets are supported in older versions, but the built-in KPI objects may not render. Test the file before sending.