Skip to main content
 

Create an interactive chart with series-selection checkbox in Excel

Author: Sun Last Modified: 2024-08-16

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:
a screenshot of the source data

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.
a screenshot of creating a range 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.
a screenshot of selecting Check Box Control under the Developer tab

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.
a screenshot showing how to edit the check box control a screenshot of the check boxes control after editing the text

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.
a screenshot of opening the Format Control dialog box a screenshot of choosing a cell link to the check box

Repeat this step to link the checkbox 2019 to cell B7.
a screenshot of choosing a cell link to another check box

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:

a screenshot of copying the source data range to a new location

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.
a screenshot of using formula to check if cell $B$6 contains a true value; if so, it returns the value from cell B3, otherwise, it returns #N/A

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.
a screenshot of using formula to check if cell $B$7 contains a true value; if so, it returns the value from cell B3, otherwise, it returns #N/A

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.
a screenshot of choosing a chart type for the new created range of cells

Now a blank chart inserted.
a screenshot showing a blank chart

You can check the checkboxes to display the data as you need.
a screenshot of checking the checkboxes to display data in the chart


Download sample file

Click to download the sample file


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