Speedometer Chart in Excel: Create a Gauge
In this article
Yes, you can create a speedometer chart in Excel. It is not a native chart type but a combination of a doughnut chart and a stacked bar chart. You need a source data range of exactly three numbers: the current value, the maximum value, and a dummy value for the background arc.
What You'll Need
- A computer with Microsoft Excel installed (2013 or later is recommended for full compatibility with chart formatting tools).
- A set of data values that represent the metric you wish to display on the gauge.
- A basic understanding of how to select data ranges and use the Chart Design and Format tabs on the ribbon.
Step-by-Step
- Prepare your source data. In a blank Excel sheet, type the following into three separate cells to set up your data source. This structure is crucial for the chart to render correctly:
- Type 0 in cell A1. This represents the minimum value of your gauge (the left side).
- Type your current value in cell A2. This is the number you want the needle to point to (e.g., 75).
- Type 100 in cell A3. This represents the maximum value of your gauge (the right side).
- Insert a Doughnut chart. Click any cell within your data range (A1:A3) to ensure it is selected. Go to the Insert tab on the ribbon and click the Insert Doughnut or Pie Chart icon. In the dropdown menu, choose the first option, which is the simple Doughnut chart.
- Convert the doughnut into a gauge background. The doughnut chart will appear as a donut shape. Your first task is to modify the data series to create the colored background arc. Click on the chart to select it, then click the Series 1 legend item on the right side of the chart (this highlights the data series in the chart area). Right-click on the highlighted segment and select Format Data Series.
- In the Format Data Series pane (which appears on the right), go to the Series Options tab. Set the Angle of first slice to -210. This rotates the chart so the arc starts at the bottom-left, positioning it correctly for a gauge.
- Under the Fill & Line section, choose a solid color for the background. A light gray or pastel color is best so it does not distract from the data. You may also want to set the Border color to match or contrast with the background.
- Modify the data to create the colored arc. With the chart still selected, click the Chart Elements button (the plus sign) in the top-right corner. Uncheck the box next to Legend to remove it, as it is not necessary for this visualization. Click the Switch Row/Column button in the Chart Design tab to change the data orientation.
- Click on the Series 2 segment in the chart (the colored part). Right-click and select Format Data Series. In the Series Options tab, set the Angle of first slice to -30. This creates the colored arc on the right side of the gauge.
- Change the Fill of this series to a color that indicates the status (e.g., green for good, red for danger). You can also adjust the Border color here.
- Insert a stacked bar chart for the needle. This is the most common point of failure. You must create a separate chart for the needle. Click on cell B1 (the 0) and hold the mouse button down. Drag the selection to include cells B2 (your value) and B3 (100). Do not include the top row header (A1) in the selection.
- Go to the Insert tab and click the Insert Column or Bar Chart icon. Select 2-D Stacked Bar. This will add a new chart to your sheet, positioned below or to the side of your doughnut chart.
- Format the stacked bar to look like a needle. Click on the new stacked bar chart to select it. In the Chart Design tab, click Switch Row/Column. This ensures the two data points (the value and the 100) are treated as bars stacked on top of each other.
- Click on the Series 1 bar (the colored one representing your value). Right-click and select Format Data Series. In the Format pane, go to the Series Options tab. Set the Overlap to 100%. This forces the colored bar to sit directly on top of the gray bar, creating a single thick bar.
- In the Gap Width section, set the gap width to 0%. This removes any space between the two segments of the stacked bar, making it a solid, single thick bar.
- Click on the Series 2 bar (the gray background bar). Set its Fill to No Fill. This removes the color from the background part of the needle, leaving only the colored bar (your value) visible.
- Combine the charts. Click on the stacked bar chart to select it. Drag the chart to position it directly over the doughnut chart. You may need to resize the stacked bar chart to match the width of the doughnut chart. Right-click on the stacked bar chart and select Move Chart. Choose the Object in dropdown and select the sheet where your doughnut chart resides. This moves the needle chart into the same container as the background.
- Remove the secondary axis. Click on the stacked bar chart and go to the Format tab. In the Current Selection group, look at the top dropdown. It will likely say Vertical (Value) Axis. Click the dropdown and select Horizontal (Category) Axis.
- Right-click on the horizontal axis and select Format Axis. In the Format pane, check the box for Categories in reverse order. This ensures the 0 value is at the bottom of the chart, which is where the needle should point.
- Click on the Vertical (Value) Axis of the stacked bar chart. Right-click and select Format Axis. In the Format pane, set the Minimum bound to 0 and the Maximum bound to 100. This ensures the axis scales match your data source (0 to 100).
- Format the needle. Click on the colored needle bar. In the Format pane, set the Fill to a contrasting color, such as a dark blue or red. Set the Border color to match the fill. You can also add a slight drop shadow to the needle for a 3D effect.
- Hide the flat parts of the needle. To make the needle look like a single thin line, you need to hide the flat parts that extend beyond the gauge. Click on the Vertical (Value) Axis of the stacked bar chart again. Right-click and select Format Axis. In the Format pane, go to the Labels section and set the Label position to None. This hides the axis numbers. Go to the Axis Options section and set the Major tick mark type to None. This hides the tick marks.
- Add a data label. Click on the colored needle bar. In the Format pane, go to the Fill & Line section and select No Fill. This makes the needle transparent. Now, click on the Format Data Series icon in the ribbon (the paint bucket). In the Format pane, go to the Fill & Line section and set the Fill to a solid color. This will apply the color only to the top part of the stacked bar, which is the part that is visible within the gauge.
- Finalize the look. Click on the doughnut chart and remove the Chart Title and Legend if they are still present. You can now add a title to the chart area itself. Click on the Chart Area and type your desired title in the formula bar. This title will appear over the entire gauge.
Common Mistakes
One of the most frequent errors users encounter is not selecting the correct data range for the stacked bar chart. If you select the entire row including the header (A1:A3), the stacked bar chart will include the header as a data point, resulting in a needle that does not point to the correct value. Always ensure you select only the values (B1:B3) for the needle chart.
Another common mistake is setting the Overlap to less than 100% or the Gap Width to more than 0%. This will result in two separate bars stacked on top of each other, rather than a single thick bar. The Overlap must be 100% and the Gap Width must be 0% to create a single needle.
Finally, users often forget to set the Categories in reverse order for the horizontal axis of the stacked bar chart. Without this setting, the 0 value will be at the top of the chart, causing the needle to point upwards instead of downwards.
Tips
To make the needle more realistic, you can add a slight drop shadow to it. To do this, click on the colored needle bar, go to the Format tab, and click the Format Shape icon. In the Format Shape pane, go to the Effects section and select Drop Shadow. Adjust the transparency and blur settings to create a subtle shadow.
If you want to change the range of your gauge, you can easily modify the source data. For example, if your gauge should range from 0 to 200, simply change the value in cell A3 to 200. The chart will automatically update to reflect the new range.
For a more professional look, you can use a Gradient Fill for the colored arc of the gauge. Right-click on the colored arc, select Format Data Series, and in the Format pane, go to the Fill & Line section. Select Gradient Fill and choose two or more colors to create a smooth transition.
Troubleshooting
If the needle is not pointing to the correct value, check your data source. Ensure that the value in cell A2 is the correct number you want to display. Also, verify that the Minimum and Maximum bounds of the vertical axis are set correctly (0 and 100, or your desired range).
If the needle is not moving when you change the value in cell A2, ensure that the stacked bar chart is linked to the data source. Click on the stacked bar chart and go to the Design tab. Click the Select Data button. In the Select Data Source dialog box, check the Chart data range field. It should contain the range of cells for the needle chart (e.g., =Sheet1!$B$1:$B$3).
If the charts are not aligned properly, you can manually adjust the size of the stacked bar chart. Click on the stacked bar chart and drag the corner handles to resize it. Alternatively, you can use the Format Shape pane to set the specific width and height of the chart.
Frequently Asked Questions
Can I create a speedometer chart with a different scale, like 0-50?
Yes, you can create a speedometer chart with any scale you want. Simply change the values in your source data range to match the scale you need. For example, if you want a scale from 0 to 50, set the minimum value to 0 and the maximum value to 50 in cells A1 and A3. Make sure to update the axis bounds in the stacked bar chart to match the new scale.
Why is my needle not a single line?
If your needle is not a single line, it is likely because the Overlap is not set to 100% or the Gap Width is not set to 0%. Go to the Format Data Series pane for the stacked bar chart and adjust these settings to 100% and 0%, respectively.
How do I add a title to the speedometer chart?
Click on the Chart Area of the combined chart. The title will appear in the formula bar at the top of the Excel window. Type your desired title and press Enter. You can also use the Chart Elements button to add a title, but this will add a separate text box that is not linked to the chart data.
Can I use this chart in PowerPoint?
Yes, you can use this chart in PowerPoint. Simply copy and paste the speedometer chart from Excel into your PowerPoint presentation. The chart will retain all its formatting and interactivity.
Why is the doughnut chart rotated incorrectly?
If the doughnut chart is rotated incorrectly, it is likely because the Angle of first slice is not set to -210 for the background arc. Go to the Format Data Series pane for the background arc and set the angle to -210.
What if I want to show two different gauges on one chart?
While you can create multiple speedometer charts on one Excel sheet, it is not possible to create a single chart with two separate needles. You would need to create two separate charts and position them side-by-side.