Excel chartsHack 9
    =IF function
    checkboxes
    data presentation
    excel dashboards

    Add Checkboxes to Show or Hide Chart Series in Excel

    Excel Hack #9

    11 views
    2 min read
    2015-08-17
    Add Checkboxes to Show or Hide Chart Series in Excel

    I came across an interactive chart in a company training material similar to the one in the snapshot sometime ago, and I remember wondering how it was built for a while. The chart has a feature that e...

    I came across an interactive chart in a company training material similar to the one in the snapshot sometime ago, and I remember wondering how it was built for a while. The chart has a feature that enables the user to adjust the number of series that are visible on the chart at any given time by selecting or deselecting check boxes attached to all the series on the chart. I was finally able to figure out how to create a similar chart effect using a combination of check boxes and conditional formatting.

    checkbox chart2

    Step 1: Prepare your standard table with values as shown below

    checkbox chart3

    Step 2: Prepare another table using your column and row headers. This is where the chart will read from.

    Step 3: Place 5 check boxes (File>Developer>Insert>Checkbox) on the sheet and link them one after the other to the cells directly above the headers of the new table, as shown below. Remove the text associated with the check boxes so that only the box is visible.

    checkbox chart4

    Step 4: Fill the new table with values using the formula highlighted in the snapshot below. This formula asks Excel to return the corresponding value from the first table if the checkbox is ticked (cell link is TRUE) but return an error value (#N/A) if it is not ticked (cell link is FALSE).

    checkbox chart6

    Step 5: Group the check boxes and fit them close to the chart (that has been prepared from the 2nd table) so that they correspond to the series they are linked to.

    The chart is now complete

    Frequently Asked Questions