creating a mean line in a bar graph

S

SDK

I would like to create a mean line for a bar graph with a data series that
includes 5 categories. The trick is that I would like to create the mean line
using only 4 of the categories (the fifth is don't know). Any ideas of how I
can select only 4 of the 5 to create a mean reference line? Thanks.
 
T

Tushar Mehta

Assuming the bar chart has vertical bars (i.e., it is what Excel considers a
column chart)...

In a column adjacent to the one containing your data, in the first row add
the formula to calculate the average (=AVERAGE({cell1:cell4}). In the next
row enter ={previous cell} Copy this down to the next 3 cells. Add this new
column to your chart. In the chart, select the new column, then select Chart
| Chart Type... | and select the first option in the Line chart category.

If you want the line to span the entire width of the chart, see Jon
Peltier's http://peltiertech.com/Excel/Charts/AddLineHorzSeries.html In
fact, he uses AVERAGE in his example so you can follow along as long as you
create the average by excluding the last point in your data set.

--

Tushar Mehta
http://www.tushar-mehta.com
Custom business solutions leveraging a multi-disciplinary approach
In Excel 2007 double-click to format may not work; right click and select
from the menu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top