Having a Chart ignore blanks

slam

Well-known Member
Joined
Sep 16, 2002
Messages
919
Office Version
  1. 365
  2. 2019
I'll start by saying I'm not good with charts in or outside of excel, so I hope I'm explaining this accurately.

I have a line chart that I want to ignore blanks from =IF(ISBLANK(),"",) formulas

It's plotting from the range AF2:AY37. AF and row 2 are the X and Y axis respectively, so AG3:AY37 is the data to be plotted.

There is currently only data in columns AF and AG, and in rows 3 through 18. How can I have it ignore the other cells?

For instance, the first value for one line to be plotted is 25, the second is 50, but with the third column being blank, its treating it like a 0. I just want the line to stop on the graph until the next value is entered/calculated.
 
Sorry, I don't know how to hide a legend entry apart from maybe having as formula in the cell with the legend text

=IF(COUNT(AF3:AF37=0,"","My Legend")

Could you elaborate on how/where to use that please?
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Thinking about it more, that won't work because the legend symbol would still appear without a (visible) series title.
 
Upvote 0
It might...

Your question is now different to your original one so you could start a new thread about how to hide a legend entry and hope that someone like Andy Pope spots it.
 
Upvote 0
Will do. Thanks for all your help. Good progress on the problem so far.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top