Thanks Dave, its only useful for data labels. What I want is to ignore the data series completely if data is zero? the data in current format is a below:
A
B
C
D
E
X
0
2
3
0
2
Y
0
2
3
0
3
Z
0
0
2
0
1
W
0
2
3
0
0
sum
0
6
11
0
6
<tbody>
</tbody>
This will be a stacked column chart where X,Y,Z, W, Sum form the columns. A,B,C,D,E are the x axis. I would like to not plot A and D series since sum is Zero. I have a TRUE/FALSE flag to indicate the same. How can I dynamically create this chart. There might be instances in future where A will be populated with numbers but C or E will all zeros. There will no new addition of columns or rows.
Plot a chart and click on the data series, in the formula bar you will see a SERIES function, I chnaged this to - =SERIES(Sheet1!$J$1,Sheet1!xvals,Sheet1!yvals,1)
Now you have fully dynamic chart that will only display non-zero series.
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.