Chart & Visualization Issues

How to Create a Chart with Average Values and Standard Deviation Error Bars in Excel

Bushra ParveenBushra Parveen Nov 11, 2026 870 views

Question details

The user needs to plot a chart based on PivotTable data where average values are represented as columns, and standard deviation values are correctly applied as error bars.

How to Create a Chart with Average Values and Standard Deviation Error Bars in Excel
Product
Excel
Device & OS
not provided
Scenario
Visualizing statistical PivotTable data, specifically attempting to attach standard deviation data as error bars to an average value chart.
Observed behavior
Excel PivotCharts automatically treat average and standard deviation fields as separate data series, preventing standard deviation from being directly applied as error bars on the average series.
Before you start

Ensure your PivotTable is properly configured to show both the Average and Standard Deviation calculations for your dataset in separate columns.

Solution 1Recommended

Use a Standard Column Chart with Custom Error Bars

Bypass the default PivotChart limitations by inserting a standard chart linked directly to specific PivotTable ranges, which allows for custom error bar assignments.

Because PivotCharts strictly plot all value fields as separate series, you cannot natively assign one field as an error bar for another. Creating a standard chart that references the PivotTable data is the most reliable workaround.

1
Insert a blank standard chart

Select a blank cell completely outside your PivotTable boundaries, then go to the Insert tab and click on the Column Chart icon to insert a standard blank chart.

2
Add the average values series

Right-click the blank chart area and choose 'Select Data'. Click 'Add' to create a new series. For the Series values, select only the range containing the average values from your PivotTable. Do not select the entire PivotTable, or Excel will convert it back into a PivotChart.

3
Set category labels

In the Select Data Source dialog, click 'Edit' under the Horizontal (Category) Axis Labels section and select the row headers from your PivotTable.

4
Insert error bars

Click on your newly created column chart, click the 'Chart Elements' icon (the plus sign) next to the chart, and check the box for 'Error Bars'.

5
Apply custom standard deviation values

Click the arrow next to Error Bars and select 'More Options'. In the Error Bar Options pane, select 'Custom' and click the 'Specify Value' button. For both the Positive and Negative Error Values, select the range in your PivotTable that contains the Standard Deviation data.

Use a Standard Column Chart with Custom Error Bars
Data Refresh Warning: If you refresh your PivotTable and the number of rows expands or shrinks, you will need to manually update both the chart data range and the custom error bar ranges.
WPS Spreadsheet Solution

Easily Visualize Advanced Statistical Data in WPS Spreadsheet

WPS Spreadsheet provides intuitive charting tools that make it simple to plot average values and assign custom error bars for in-depth data analysis. You can seamlessly open your Excel files and perform complex visualizations with a familiar interface.

  1. 1. Create your statistical PivotTable: Open your dataset in WPS Spreadsheet and generate a PivotTable that calculates your averages and standard deviations.
  2. 2. Insert a standalone chart: Select a cell outside the PivotTable, go to the Insert tab, and add a standard Column Chart.
  3. 3. Assign series and custom error bars: Use the 'Select Data' menu to map your average values, then use the Chart Elements menu to assign your standard deviation range as custom error bars.
Fully compatible with Microsoft Excel PivotTables and chartsIntuitive and user-friendly interface for customizing error barsLightweight application ensuring high performance for large datasetsFree to use with comprehensive data visualization capabilities
microsoft office alternative - wps office

Frequently Asked Questions

Why does my PivotChart plot standard deviation as a separate column?

PivotCharts are designed to automatically treat all Value fields in a PivotTable as independent data series. Since standard deviation is added as a Value field to be calculated, Excel plots it as its own bar rather than interpreting it as an error bar for the average.

How do I prevent my standard chart from automatically turning into a PivotChart?

The key is to ensure your active cell is completely outside the PivotTable when you first click 'Insert Chart'. Additionally, when using the 'Select Data' dialog, carefully highlight only the specific numerical cells you need, rather than clicking the entire PivotTable or utilizing PivotTable field names.

Will my custom error bars update automatically if my underlying data changes?

The error bars will recalculate automatically if the values within your existing PivotTable range change. However, if your PivotTable changes in size (e.g., adding or removing rows after a refresh), you must manually adjust the ranges for both the chart series and the custom error bars to encompass the new dimensions.