Excel line chart to dynamically ignore series?

povictory

New Member
Joined
May 28, 2015
Messages
45
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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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