Solved

Change Excel Graph to Not Go to 0 for N/A values

Posted on 2011-03-07
3
196 Views
Last Modified: 2012-05-11
Hi there - I'm looking for some help for a set of graphs I have. As you can see in the attached file, some of the data points have "N/A" for values because the data isn't available yet, and the chart brings the points all the way down to the 0. Is there a way to change this?

I know I can change the area of cells of data it shows, but I have about 8 of these reports to do frequently and changing all the charts would take quite a while, I'm looking for something more automated.

Please help if you can!
Thanks :)
Elizabeth
Example-Stack-Graphs.xlsx
0
Comment
Question by:AnalyticsTeam
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 35065814
Hello,

for the data series, you only want to include the populated cells, no cells with N/A, no blank cells.

see attached. I created dynamic range names to include just the populated cells and fed these names into the series definition.

SeriesA      ='Example Data Set'!$W$4:INDEX('Example Data Set'!$W$4:$W$1000,MATCH(99^99,'Example Data Set'!$W$4:$W$1000,1))
SeriesB      =OFFSET(SeriesA,0,1)
SeriesC      =OFFSET(SeriesA,0,2)
SeriesD      =OFFSET(SeriesA,0,3)
SeriesE      =OFFSET(SeriesA,0,4)

The series definition must be entered like

='Example Data Set'!SeriesA

etc. When clicking OK, it will automatically change to

'Example-Stack-Graphs.xlsx'!SeriesA

I then included a dummy series that has the same number of rows as the X axis labels you want to include. It just points to a range of empty cells, and makes sure that the X axis extends beyond the last plotted data point.

Of course, your comparison chart is a 100% stacked area chart, whereas your other chart is a Stacked area chart. But the solution will apply to both types.

cheers, teylyn
Copy-of-Example-Stack-Graphs.xlsx
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 35065839
The idea behind the dynamic range names is, of course, that they will update automatically, so when you enter new data into your table, you don't have to adjust the charts.

Only when you extend the X axis, you will need to extend the dummy series by the same number of cells.

It is a liiiittle bit of setup work to create the dynamic ranges, but in the long run it will save you heaps of time.

Make sense?
0
 

Author Closing Comment

by:AnalyticsTeam
ID: 35065889
It does make sense, it's too late on east coast time to actually do it :) -- but I do understand. Thank you for your help Teylyn!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question