?
Solved

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

Posted on 2011-03-07
3
Medium Priority
?
201 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

762 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