Solved

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

Posted on 2011-03-07
3
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) 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
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 article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

734 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