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.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Excellent. That is ignoring the N/A values in AG3:AY37. Thanks!

Can I also do something to have it not plot (or show in the legend), the blanks (or N/A's if I tried that formula again) in AF3 through AF37?
 
Upvote 0
You're right - its not plotting the values. They're just showing up in the legend.

The issue with that solution is that additional values will be added in column AF, so I wouldn't want to be manually deleting anything from the chart legend. I need it to be dynamic.
 
Upvote 0
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")
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
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