Sie sind auf Seite 1von 5

6/12/2019 Adding Error Bars to Charts in Excel 2013 – Nathan Brixius

Nathan Brixius
Data science, optimization, analytics, sports.

Adding Error Bars to Charts in


Excel 2013

Excel 2013 makes it easier than ever to create error bars. Hooray! This post shows
you how to add them to your charts. The spreadsheet with the chart and backing
formulas can be downloaded here [link]. If you are looking for a more detailed
reference, I recommend Excel Charts by John Walkenbach. I also recommend this
excellent post by Peltier Tech.

Let’s get started. I created a simple bar chart from a table representing promotional
response to advertising on three products in twenty major US markets. (Actually,
it’s just a 20×3 table with =RAND()*RAND().) Here’s the chart:

When you create a chart in Excel 2013, three buttons appear just above the upper-
right hand corner. Click on the “plus” button to add new chart elements – check
“Error Bars” and error bars will magically appear on your chart.

https://nathanbrixius.wordpress.com/2013/02/11/adding-error-bars-to-charts-in-excel-2013/ 1/5
6/12/2019 Adding Error Bars to Charts in Excel 2013 – Nathan Brixius

A task pane opens on the right side of the screen. This pane lets you customize the
range and formatting of the error bars. Click on one of the error bars, and then on
the “bars” icon in the task pane to see range options:

Usually I want to supply my own values for the top and bottom based on formulas.
Suppose I want to display 95% con dence intervals using the series data.

First I need to compute standard deviations for each series using STDEV.P:

=STDEV.P(A2:A21)

Then compute the 95% con dence value using CONFIDENCE.NORM:

=CONFIDENCE.NORM(0.05,F3,COUNT(A2:A21))

https://nathanbrixius.wordpress.com/2013/02/11/adding-error-bars-to-charts-in-excel-2013/ 2/5
6/12/2019 Adding Error Bars to Charts in Excel 2013 – Nathan Brixius

Row 4 has the 95% con dence values for each of the three series. I’d like to base my
error bars on these values. Click on Custom. Clicking on the “Specify Value” button
brings up a dialog box:

The “Positive Error Value” range selector lets me enter in a constant value or more
interestingly, cell range that de nes the top of the error bars, as an o set from the
bar. Similarly, “Negative Error Value” de nes the bottom of the error bars. Again,
these are o sets, not absolute values. Therefore I want to use F4:H4 for both. Select
those ranges, click OK and voila: a nice looking chart with error bars.

If I change the values in columns F-H, the error bars change too. The other Error
Amount choices in the Error Bar task pane are simpler. For example, Standard
Deviation means that the top and bottom will be one standard deviation from the
mean across all series:

https://nathanbrixius.wordpress.com/2013/02/11/adding-error-bars-to-charts-in-excel-2013/ 3/5
6/12/2019 Adding Error Bars to Charts in Excel 2013 – Nathan Brixius

“Fixed value” and “Percentage” are obvious. “Standard Error” computes the top
and bottom using the standard error of the corresponding series. The
documentation describes the formulas used by Excel.

This feature was not widely advertised in the Excel 2013 release, but it’s really
useful. Charts just look better, too. All in all, some nice improvements!

Advertisements

Share this:

 Twitter  Facebook

Related

Beautiful Box Plots in Excel 2013

In "Analytics"

Optimization In Google Sheets

https://nathanbrixius.wordpress.com/2013/02/11/adding-error-bars-to-charts-in-excel-2013/ 4/5
6/12/2019 Adding Error Bars to Charts in Excel 2013 – Nathan Brixius

In "Analytics"

Time Series Forecasting using Analytic Solver Platform, Windows Azure Marketplace, and Power
Query

In "Analytics"

Author: natebrix
Follow me on twitter at @natebrix. View all posts by natebrix

natebrix / 11 February 2013 / Analytics, Excel, Visualization / analytics, Excel, Visualization

Nathan Brixius / Create a free website or blog at WordPress.com.

https://nathanbrixius.wordpress.com/2013/02/11/adding-error-bars-to-charts-in-excel-2013/ 5/5

Das könnte Ihnen auch gefallen