Excel line chart to dynamically ignore series?

povictory

New Member
Joined
May 28, 2015
Messages
41
Hello,

I've been searching for a solution to my issue but haven't had any luck. I have a line chart that I'm trying to make change dynamically depending on form control option buttons. There are three buttons/"views" for the chart - one for revenue, one for expense, and one for margin and the source data for the chart updates depending on which button is clicked.

The problem I'm running into is that the revenue source data has three series, but the expense and margin source data each only have two. So when I click on the expense or margin buttons, they still show a blank series. I'm wondering if there is a way to show all three revenue-related series when the revenue button is clicked, but turn off the third series when the expense or margin buttons are clicked?

If it helps, here is how my source data is laid out. When the revenue button is clicked, it shows this data:

Time PeriodSeries1Series2Series3
2018​
229​
428​
141​
2019​
387​
160​
306​
2020​
469​
329​
302​
2021​
468​
128​
430​

When the expense or margin buttons are clicked, it shows this data (series 3 has formulas to show as blank):

Time PeriodSeries1Series2
2018​
229​
428​
2019​
387​
160​
2020​
469​
329​
2021​
468​
128​

Any assistance would be greatly appreciated!!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

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