Create an interactive chart with series-selection checkbox in Excel
In Excel, we usually insert a chart for better displaying data, sometimes, the chart with more than one series selections. In this case, you may want to show the series by checking the checkboxes. Supposing there are two series in the chart, check checkbox1 to display series 1, check checkbox2 to display series 2, and both checked, display two series as below screenshot shown.
1. Firstly, please arrange the data range as below screenshot shown:
2. Then type below data into a blank range, supposing here, type 2018 into cell A6, TRUE in the cell B6, 2019 into cell A7, TURE in cell B7.
2018 and 2019 are the row header of the data that will be used as series in the chart.
3. Then insert two checkboxes. Click Developer > Insert > Check Box (From Control). Then draw a checkbox in a blank place. Repeat this step to draw another checkbox.
4. Then right click at the first checkbox, choose Edit Text from the context menu, then change the name of the checkbox 1 to 2018 (the first series name you will use in chart). Repeat this step to change the name of checkbox 2.
5. Then right click at checkbox 2018, select Format Control from the context menu, in the Format Control dialog, in Cell link textbox, choose the cell B6 that you typed TRUE in step 2, and click OK.
Repeat this step to link the checkbox 2019 to cell B7.
Now when the checkboxes are checked, the text in B6 or B7 will display TRUE, or display FALSE.
6. Copy the data range, here is A2:M4, and paste them to a blank cell, for instance cell A10. Then delete all data range excluding the headers. See screenshot:
7. In the cell B11, the first blank cell of the pasted data range, type this formula =IF($B$6,B3,NA()), then drag the auto fill handle right to fill all cells of the data range with this formula.
8. In the cell B12, type this formula =IF($B$7,B4,NA()), then drag the auto fill handle right to fill all cells of the data range with this formula.
9. Now select the pasted data range excluding first column data, for instance, B10:M12, click Insert tab and choose a type of chart in Chart group.
Now a blank chart inserted.
You can check the checkboxes to display the data as you need.
Tip: If you usually use complex charts in Excel, which will be troublesome as you create them very time, here with the Auto Text tool of Kutools for Excel, you just need to create the charts at first time, then add the charts in the AutoText pane, then, you can reuse them in anywhere anytime, what you only need to do is change the references to match your real need. Click for free download it now.