Skip to main content

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.
interative chart checkbox 1

1. Firstly, please arrange the data range as below screenshot shown:
doc interactive chart 1

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.
doc interactive chart 2

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.
doc interactive chart 3

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.
doc interactive chart 4 doc interactive chart 5

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.
doc interactive chart 6 doc interactive chart 7

Repeat this step to link the checkbox 2019 to cell B7.
doc interactive chart 8

Now when the checkboxes are checked, the text in B6 or B7 will display TRUE, or display FALSE.
doc interactive chart 9

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:
doc interactive chart 9

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.
doc interactive chart 10

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.
doc interactive chart 11

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.
doc interactive chart 12

Now a blank chart inserted.
doc interactive chart 13

You can check the checkboxes to display the data as you need.
doc interactive chart 14


Download sample file

Click to download the sample file

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.
doc conditional formatting stacked bar chart 12


Other Operations (Articles) Related To Charts

Dynamic highlight data point on Excel chart
If a chart with multiple series and a lot of data plotted on it, which will be difficult to read or find only relevant data in one series you use.

Conditional formatting stacked bar chart in Excel
This tutorial, it introduces how to create conditional formatting stacked bar chart as below screenshot shown step by step in Excel.

Creating an actual vs budget chart in Excel step by step
This tutorial, it introduces how to create conditional formatting stacked bar chart as below screenshot shown step by step in Excel.

Create a chart with date and time on X axis in Excel
in this article, I introduce the way for how to show the date and time on X axis correctly in the Chart.


  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns and Keeping Data; Split Cells Content; Combine Duplicate Rows and Sum/Average... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Favorite and Quickly Insert Formulas, Ranges, Charts and Pictures; Encrypt Cells with password; Create Mailing List and send emails...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • Pivot Table Grouping by week number, day of week and more... Show Unlocked, Locked Cells by different colors; Highlight Cells That Have Formula/Name...
kte tab 201905
  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hello, I am doing this with several ranges of Data. Is there a way to make it so that when a checkbox is unchecked the data is also removed from the legend?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations