Solved

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

Posted on 2011-03-07
3
198 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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;…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

828 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