To create a speedometer (gauge) chart in Excel, you must combine a Doughnut chart for the colored background scale and a Pie chart for the moving needle. Because Excel does not have a native "gauge" chart type, this method uses a data-driven approach to simulate the look of a dial, allowing your KPI markers to update automatically when your data changes.
What You'll Need
- Microsoft Excel (Desktop version recommended for better formatting control).
- A specific set of data points for the gauge background (the colored segments).
- A specific set of data points for the needle (the pointer).
- A single cell containing the value you want to track (your actual KPI).
Step-by-Step
- Set Up the Gauge Background Data: Create a small table for the colors of your speedometer. For a standard three-color gauge (Red, Yellow, Green), enter the following values in a column:
- Red: 25
- Yellow: 25
- Green: 50
- Bottom Half: 100
- Set Up the Needle Data: In a separate area, create three cells:
- Value: This is your actual KPI (e.g., 75%).
- Needle Width: Enter a small number, such as 1 or 2.
- Remainder: Use a formula to calculate the rest of the circle. If your value is in cell A1 and needle width is in B1, the formula is:
=200 - (A1 + B1).
- Create the Background Gauge: Highlight the four values from Step 1. Go to the Insert tab, select the Pie or Doughnut Chart icon, and choose Doughnut.
- Rotate the Gauge: Right-click the chart and select Format Data Series. In the Series Options pane, change the Angle of first slice to 270°. This moves the "Bottom Half" segment to the bottom.
- Hide the Bottom Half: Double-click only the bottom half of the doughnut (the large segment). In the Fill options, select No fill and No line. Your chart now looks like a semi-circle.
- Color the Segments: Double-click each remaining segment individually and change the Fill color to Red, Yellow, and Green respectively.
- Add the Needle: Right-click the chart and choose Select Data. Click Add, name the series "Needle," and select the three values created in Step 2 (Value, Needle Width, and Remainder).
- Change Needle to Pie Chart: The chart will now look messy because it added a second doughnut. Right-click the new outer ring and select Change Series Chart Type. In the Combo menu, ensure the first series (Gauge) is a Doughnut and the second series (Needle) is a Pie. Check the box for Secondary Axis for the Pie chart.
- Format the Needle: Right-click the Pie chart and select Format Data Series. Change the Angle of first slice to 270° to match the gauge.
- Make the Needle Invisible: Double-click the large slices of the Pie chart and set their Fill to No fill and No line. Only the tiny "Needle Width" slice should remain. Change its Fill color to Black.
- Final Polish: Delete the chart title and legend. You can now insert a Text Box in the center of the gauge and link it to your KPI cell (by clicking the formula bar and typing
=A1) to display the numerical value.
Common Mistakes
- Incorrect Sums: If the "Bottom Half" value does not exactly equal the sum of the top segments, the gauge will not be a perfect semi-circle.
- Wrong Series Type: Forgetting to move the needle to the Secondary Axis will cause the gauge to distort or disappear.
- Scaling Issues: Using percentages (0.75) instead of whole numbers (75) can confuse the chart if the background data is based on whole numbers. Ensure both data sets use the same scale (either both 0-100 or both 0-1).
Tips
- Dynamic Colors: Use Conditional Formatting on your KPI cell so you can visually see the value change before looking at the gauge.
- Custom Ranges: If your "Red" zone is only 10% and "Green" is 40%, simply adjust the background data values (e.g., 10, 50, 40, 100).
- Grouping: Once finished, hold Ctrl and select the chart and the center text box, then right-click and select Group. This allows you to move the entire speedometer as one object.
Troubleshooting
- Needle is too thick: Decrease the "Needle Width" value in your data table (e.g., change 2 to 1).
- Needle is pointing the wrong way: Check the Angle of first slice for both the Doughnut and the Pie chart; both must be set to 270°.
- Chart looks like a full circle: Ensure you have set the Fill of the bottom half of the doughnut and the remainder slices of the pie to No fill.
- Data doesn't update: Ensure the needle's "Remainder" cell uses a formula that references the KPI cell, rather than a static number.
Frequently Asked Questions
Can I make a speedometer with more than three colors?
Yes. Simply add more rows to your background data table and ensure the "Bottom Half" value equals the total sum of all color segments.
Does this work in Excel for Web?
While you can view these charts in Excel for Web, the advanced formatting (like changing the Angle of first slice) is much easier and more reliable in the desktop application.
How do I change the needle color?
Double-click the thin slice of the Pie chart that represents the needle and use the Fill bucket to choose a different color.
Can I link this to a live data feed?
Yes. As long as the KPI cell is linked to an external data source or a Power Query, the needle will move automatically when the data refreshes.
Why is my needle disappearing when the value is 0?
If the value is 0, the slice may become too small to see. Ensure your "Needle Width" is a positive number (like 1) to keep the pointer visible at all times.