Solved

Preventing Null values from plotting in Excel Charts.

Posted on 2016-08-15
7
35 Views
Last Modified: 2016-08-18
Hello EE,

I am working on creating a report on data that is constantly changing.  I want to plot the only cells with records.  In the attached spreadsheet, if i click on column B7 to show Group 1, there are 21 records that needs to be plotted.  If i click on B7 to select Group 2 there are 6 records to be plotted.  For group 2, I want to delete or hide cells that are not populated and only plot the cells that are populated with data.  I am thinking this can be accomplished using vba.  My goal is to create 2 separate reports for Group 1 and Group 2

Thanks in advance for your assistance
My-Sample.xlsx
0
Comment
Question by:fb1990
  • 4
  • 3
7 Comments
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41756866
For all the data series, replace the "" in the formulas with NA() like below...

e.g. the formula in C13 should be like below......

=IFERROR(INDEX('My Sample Data'!D$6:D$32,SMALL(IF('My Sample Data'!$C$6:$C$32=$B$7,ROW('My Sample Data'!D$6:D$32)-ROW('My Sample Data'!$B$6)+1,""),ROW(C1))),NA())

Open in new window

Change all the formulas in the same way for column D,E,F,J,K,L and M.
0
 
LVL 1

Author Comment

by:fb1990
ID: 41756901
Thanks Subodh,

This does not work for me.  It is showing #N/A.  I do not want it to show.  Is there a way to hide the empty cells and only plot where there are records?
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41756928
Actually it is the easiest workaround this issue.
Don't worry about the #N/A errors which you see in the cells, you can hide them with the conditional formatting by making a new rule for conditional formatting using the formula below and set the font color exactly same as that of the fill color.
First select the range A13:C33 and use the formula given below for conditional formatting.
=ISERROR(A13)

Open in new window

Please refer to the attached.
My-Sample.xlsx
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 1

Author Comment

by:fb1990
ID: 41757067
thanks again for staying with me on this.  Although the data for blank cells are not showing on chart, the space is still on the chart.  Is there a way to make the chart grow with the chart instead of showing it as blank space on the chart?
0
 
LVL 28

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 total points
ID: 41757356
Okay. I have created 7 named ranges and used them as a source in the charts.
You may customize the charts as per your requirement.

Please refer to the attached.
My-Sample.xlsx
0
 
LVL 1

Author Comment

by:fb1990
ID: 41757770
Thank you very much Subodh.  I really appreciate your help
0
 
LVL 28

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41757772
You're welcome. Glad to help.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now