Speedometer Gauge in Excel: Step-by-Step Guide
In this article
To make a speedometer gauge in Excel, you must combine a Doughnut chart for the background scale and a Pie chart for the needle, layering them on top of one another and rotating the Doughnut chart by 270 degrees. This visual tool allows you to track Key Performance Indicators (KPIs) or project progress in a way that is instantly intuitive for stakeholders, transforming raw numbers into a visual representation of performance against a target.
What You'll Need
- Microsoft Excel (Desktop version recommended for full chart formatting capabilities).
- A specific data value you want to track (e.g., actual sales, percentage of completion, or a score).
- A defined maximum value for your scale (e.g., 100% or a specific currency amount).
- Basic familiarity with the Insert tab and Chart Tools.
Step-by-Step
Phase 1: Creating the Gauge Background
The background of a speedometer is actually a Doughnut chart that has been cut in half and rotated. You need to create a data table that defines the colored segments of your gauge.
- Create a small table for your gauge segments. For a standard Red-Yellow-Green gauge, enter the following values in a column: Low (25), Medium (25), High (25), and Bottom (50). The "Bottom" value must be the sum of the other three to create a perfect semi-circle.
- Select these four values. Go to the Insert tab, click the Pie or Doughnut Chart icon, and select Doughnut.
- Right-click the chart and select Format Data Series. In the pane that appears, change the Angle of first slice to 270°. This moves the large "Bottom" slice to the bottom half of the circle.
- Click once on the Doughnut chart to select the whole ring, then click a second time specifically on the bottom half slice. Right-click this slice, select Fill, and choose No fill. Then select Border and choose No line. The bottom half is now invisible, leaving a semi-circle.
- Select the remaining visible slices individually and change their colors to represent your scale: Red for the first 25%, Yellow for the middle 25%, and Green for the final 25%.
Phase 2: Preparing the Needle Data
The needle is a separate Pie chart that sits on top of the Doughnut. It requires a specific set of calculations to ensure it points to the correct value based on your data.
- Set up a "Needle Data" table with three cells. The first cell is your Value (the actual number you are tracking, e.g., 75). The second cell is the Needle Width (usually a small number like 1 or 2). The third cell is the Remainder.
- In the Remainder cell, enter the formula:
=200 - (Value + Needle Width). (Note: 200 is used here because the total scale of the top half of the gauge is 100, and the total circle is 200). - Ensure your Value is scaled correctly. If your gauge max is 100 and your value is 75, the formula works. If your max is different, you must normalize your value to a 0-100 scale first.
Phase 3: Adding the Needle to the Chart
- Right-click your existing Doughnut chart and choose Select Data. Click Add under Legend Entries (Series).
- For the Series name, type "Needle". For the Series values, select the three cells you created in Phase 2 (Value, Needle Width, and Remainder). Click OK.
- Your chart now looks like a messy Doughnut with a second ring. Right-click the new outer ring and select Change Series Chart Type.
- In the Combo chart menu, find the "Needle" series and change its chart type to Pie. Crucially, check the box for Secondary Axis. Click OK.
- The Pie chart will now cover the Doughnut. Right-click the Pie chart and select Format Data Series. Change the Angle of first slice to 270°, matching the Doughnut.
- Now, click the Pie slices individually to format them. The large "Remainder" slice and the "Value" slice should both be set to No fill and No line. Only the tiny "Needle Width" slice should remain visible. Fill this slice with Black or a dark grey to look like a needle.
Phase 4: Final Polishing
- Click on the chart title, legend, and any axis labels and press Delete to remove them for a clean look.
- To add a center hub, go to Insert > Illustrations > Shapes and draw a small circle at the bottom center of the gauge. Fill it with a dark color.
- To add a digital readout, go to Insert > Text Box. Draw the box in the center of the gauge. While the text box is selected, click into the Formula Bar, type
=, and click on the cell containing your actual Value. Press Enter. Now the text box will update automatically when the data changes.
Common Mistakes
One of the most frequent errors is failing to set the "Bottom" slice of the Doughnut chart to exactly the sum of the top slices. If your top slices are 25, 25, and 25, but your bottom slice is 100, the gauge will not be a perfect semi-circle, and the needle will not align with the colors. Always ensure the bottom slice equals the sum of the visible segments.
Another common mistake is forgetting to assign the Needle series to the Secondary Axis. If both the Doughnut and the Pie chart are on the Primary Axis, Excel will try to stack them or overlap them in a way that makes the needle impossible to format independently. The secondary axis allows the Pie chart to float on top of the Doughnut chart.
Users often forget to link the text box to the cell via the formula bar. If you simply type the number into the text box, the gauge will move when the data changes, but the number will remain static, leading to confusing and inaccurate reports.
Tips
To make your gauge look more professional, remove the chart area border and fill. Right-click the outer edge of the chart, select Format Chart Area, and set both Fill and Border to No fill and No line. This allows the gauge to blend seamlessly into your dashboard background.
If you want a dynamic color-changing needle, you can use conditional formatting on the value cell, though changing the chart slice color automatically requires VBA. For a non-VBA alternative, create three different needle series (one for each color zone) and use formulas to only give a value to the series that corresponds to the current range.
For better readability, add "Marker" labels. Use the Insert > Text Box feature to place "0%", "50%", and "100%" at the edges and center of the gauge. This provides the viewer with a concrete reference point for the needle's position.
Troubleshooting
The needle is pointing in the wrong direction: Check the Angle of first slice for both the Doughnut and the Pie charts. Both must be set to exactly 270°. If one is 0° and the other is 270°, the needle will be offset by 90 degrees.
The needle is too thick or too thin: This is controlled by your "Needle Width" value in the data table. If the needle looks like a block, reduce the value from 2 to 1 or 0.5. If it is invisible, increase the value slightly.
The needle doesn't reach the end of the gauge: This happens when the "Remainder" formula is incorrect. Ensure the formula is =TotalScale - (Value + NeedleWidth). If your total scale is 200 (to account for the full circle), and your value is 100, the remainder should be 99 (assuming a width of 1). If the remainder is too large, the needle will stop short.
The chart looks distorted after resizing: Avoid stretching the chart by the side handles only. Hold the Shift key while resizing from the corner to maintain the aspect ratio, ensuring the semi-circle remains circular and doesn't become an oval.
Frequently Asked Questions
Can I make a gauge with more than three colors?
Yes. Simply add more rows to your Doughnut data table. For example, use five segments of 20 each. Just remember to update your "Bottom" slice to be the sum of all five (100 in this case) to keep the semi-circle shape.
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 or managing secondary axes) is much more limited. It is highly recommended to build the gauge in the Desktop application and then upload it.
How do I make the needle move automatically?
The needle moves automatically if the "Value" cell in your Needle Data table is linked to your actual data source. Use a simple =CellReference formula to connect the gauge's data table to your main data sheet.
Can I add multiple gauges to one dashboard?
Yes. Once you have created one perfect gauge, the fastest way to create more is to copy and paste the entire chart and the associated data tables. Then, simply change the cell references in the new data tables to point to different KPIs.
Why is my needle appearing as a large slice instead of a line?
This occurs if the "Value" or "Remainder" slices are still filled. Ensure that only the "Needle Width" slice has a fill color; the other two slices in the Pie chart must be set to No fill.