Not displaying a chart series if there are zero entries

Peter Davison

Active Member
Joined
Jun 4, 2020
Messages
451
Office Version
  1. 365
Platform
  1. Windows
I have an x y chart with 10 series' with dynamic named ranges for the x and y coordinates (sample of one named range below)
Depending on the user the number of these ranges used is variable with the maximum being 10.
If there are less than 10 then the chart still plots the ones with no data as a 1 for the x and 0 for the y coordinates, which makes the scale of the graph unreadable.
I'm trying to find a way that if only 8 of the ranges are used then 9 and 10 do not appear on the chart at all

Example named range for range 2 - =IFERROR(OFFSET(Chart!$D$20,MATCH(2,Chart!$B$21:$B$5000,0),,COUNTIF(Chart!$B$21:$B$5000,2)),"")

Is there a way I can make this happen?
Thank you for any help.

Chart example using 8 ranges

1685716544778.png
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,223
Messages
6,177,254
Members
452,765
Latest member
Erka Gizli

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