To add error bars from your own data in Excel, you need a column of values for the error amount (the plus/minus, standard deviation, or standard error) and a chart that supports error bars. Select the chart, go to Chart Design > Add Chart Element > Error Bars > More Error Bars Options, then choose Custom and point the positive and negative boxes at your error column. That is the whole method; the rest of this guide covers the details, the chart types that work, and what to do when the Custom option is greyed out.
What You'll Need
- Excel for Windows, Mac, or the web. The ribbon labels can differ slightly by version and platform, but the Error Bars options are in the same place on all current versions.
- A chart already created from your data. Error bars attach to a chart series, not to a cell range on its own.
- A column of error values in the same order as your data points. This can be a fixed amount, a standard deviation you calculated, or a standard error you calculated.
- Optional: a second column if your error is asymmetric (different plus and minus amounts).
Step-by-Step
- Calculate your error values first. In an empty column next to your data, enter the error amount for each data point. If you want standard deviation, use
=STDEV.S(range)for a sample or=STDEV.P(range)for a population. If you want standard error, divide the standard deviation by the square root of the count:=STDEV.S(range)/SQRT(COUNT(range)). Copy the formula down so every row has a value. Keep this column the same length and order as your charted data. - Select the chart. Click once on the chart area so the Chart Design and Format tabs appear on the ribbon. If you click a single data point instead, you will edit only that series.
- Open the Error Bars menu. On the Chart Design tab, click Add Chart Element (on older versions it may be called Chart Elements), point to Error Bars, and choose More Error Bars Options. On Excel for the web the same command is under the plus sign next to the chart.
- Pick the series. In the Format Error Bars pane that opens, use the Series dropdown at the top to choose which data series the bars belong to. If you have only one series, it is already selected.
- Choose the direction and end style. Under Direction, select Both, Plus, or Minus. Under End Style, choose Cap for a flat line at the end of each bar or No Cap for a plain line. Most scientific and business charts use Both with Cap.
- Switch the amount type to Custom. Scroll to Error Amount and select the Custom radio button. Two buttons appear: Specify Value for the positive direction and a second one for the negative direction.
- Point the positive box at your error column. Click Specify Value next to the positive box. A small range selector appears. Click the first error cell, then drag down to the last one, or type the range such as
Sheet1!$C$2:$C$10. Press Enter or click OK. Do not include the header cell. - Point the negative box at the same column. Click Specify Value next to the negative box and select the same range. If your errors are asymmetric, use a different column here.
- Check the result and close the pane. The chart now shows a bar of the exact length you supplied at each point. Click the X on the Format Error Bars pane to close it. If the bars look wrong, reopen the pane and confirm the ranges match the number of plotted points.
Common Mistakes
Including the header row. If you select the header along with the values, Excel tries to plot text as a number and the bars either vanish or come out wrong. Select only the numeric cells.
Mismatched counts. The error range must have exactly one value per plotted point. If your chart plots ten points and your range has nine values, Excel may drop the last bar or refuse the range.
Using a chart type that does not support error bars. Error bars are available on bar, column, line, area, scatter, and bubble charts. They are not available on pie, doughnut, or radar charts. If the Error Bars option is greyed out, that is usually why.
Expecting Excel to calculate standard error for you. The built-in Standard Error and Standard Deviation options use the plotted values themselves, not a separate column. If you need a specific formula, calculate it yourself and use Custom.
Editing the wrong series. In a chart with several series, the pane applies to whichever series is selected in the dropdown. Change the dropdown before adjusting the boxes.
Tips
Keep the error column on the same sheet as the chart data so the range reference is easy to read. Name the range (Formulas > Define Name) if you reuse it, then type the name into the Specify Value box instead of a cell range.
If you need different error amounts for each point, Custom is the only option that works. The fixed-value, percentage, and standard-deviation options apply the same rule to every point.
To remove error bars later, select them on the chart and press Delete, or return to Add Chart Element > Error Bars > None.
For a clean look, format the bars as thin lines with caps and match their colour to the series rather than leaving the default black.
Troubleshooting
The Custom option is greyed out. Confirm the chart type supports error bars and that you selected a data series, not the chart title or legend. Switch to a column or line chart temporarily if you are unsure.
The bars are all the same length. You probably left the amount type on Fixed Value or Percentage instead of Custom. Reopen the pane and select Custom.
The bars are enormous or invisible. Check the units in your error column. A standard deviation calculated on a large range can dwarf the plotted values, and a column of zeros produces no visible bars. Recalculate and confirm the range.
The range selector will not accept your cells. Type the range manually in the form Sheet1!$C$2:$C$10, using the sheet name exactly as it appears. If the sheet name contains spaces, wrap it in single quotes, for example 'Q1 Data'!$C$2:$C$10.
Bars appear on the wrong series. Change the Series dropdown in the Format Error Bars pane, or delete the bars and re-add them with the correct series selected first.
Frequently Asked Questions
Can I add error bars from data on a different sheet?
Yes. In the Specify Value box, type the full reference including the sheet name, such as Errors!$B$2:$B$12. The range selector itself only picks cells on the active sheet, so typing is the reliable method.
Do error bars work on a scatter chart?
Yes, and scatter charts support separate X and Y error bars. The Format Error Bars pane shows both directions, so you can supply one range for horizontal error and another for vertical.
Why does Excel show error bars on only some points?
Usually the error range is shorter than the number of plotted points, or some cells in the range are blank. Fill every cell in the range with a number, including zeros where the error is zero.
Can I use a formula result as the error amount?
Yes. The error column can contain formulas; Excel reads the calculated values. Just make sure the cells display numbers, not error codes such as #DIV/0!.
How do I make the error bars thinner or a different colour?
Select the error bars on the chart, then use the Format pane to change line width, colour, and cap style. Changes apply to the whole series at once.
Are error bars available in Excel for the web?
Basic error bar options are available, but the full Format Error Bars pane with Custom ranges is more complete in the desktop app. If the Custom option is missing in the browser, open the file in desktop Excel to set it.