Table Of Contents

arrow

Creating Excel Interactive Chart

Charts' visuals are better to tell the story. Everyone knows it, but interactivity is required with the chart to tell the story better. Interactivity is when the user can see certain values in the Excel chart. They should be able to see that result when they click the button. For example, if the chart shows "Sales & Cost" values. If the user wants to see the "Profit" chart, then if they click on the "Profit" option, they should see the chart accordingly.

Interactive-Chart-in-Excel

Examples to Create Interactive Chart in Excel

Example #1

We have monthly sales values, as shown below.

Interactive Chart in Excel Example 1

Instead of seeing all the month's values in the column chart in excel we want to see single month values. So, if we click on the "Forward" button, we should keep looking at the next month's values in the chart.

Follow the below steps to create an interactive chart.

  1. We must first copy the above data table and paste-like the below image.


    Interactive Chart in Excel Example 1.1.0

  2. Below that, create a similar template but without values.


    Interactive Chart in Excel Example 1.2.0

  3. Under the Excel Developer tab, click on Insert and choose Scroll Bar.


    Interactive Chart in Excel Example 1.3

  4. Draw this button on the worksheet, as shown below.


    Interactive Chart in Excel Example 1.4.0

  5. Then, right-click on the scroll bar in Excel and choose Format Control.


    Interactive Chart in Excel Example 1.5.0

  6. Now, the Format Control window comes up. In this window, choose the Control tab.


    Interactive Chart in Excel Example 1.6

  7. Make the current value zero, the minimum value is zero, and the maximum value is 12 because we have only 12 months of sales value.

    Next, we must make the incremental change as 1 because whenever we click on the forward button, it should change by 1. Then, make Page Change as zero, and give a cell link as A6. Finally, click on OK to close out that window.

    Interactive Chart in Excel Example 1.7

  8. Now, click on the Forward button of the scroll bar and see the value in the A9 cell.


    Interactive Chart in Excel Example 1.8
    We have clicked on the Forward Button of the scroll bar three times. Therefore, in cell A9, we have a value of 3.

  9. Similarly, if we click on the Backward Button, it will reduce by 1 every time.


    Interactive Chart in Excel Example 1.9

  10. Now, in the B5 cell, we must apply the IF condition, as shown below.


    Interactive Chart in Excel Example 1.10
    Let us explain the formula to you.

    The formula explains that if the A6 value (which is increased or decreased by scroll bar moment) is less than or equal to 1, then we need the value from the B2 cell (Jan Sales value), or else we need #N/A error value.

    Similarly, change the formula for Feb month, as shown below.
    Example 1.11.0
    Since Feb is the second month, we need the value from the Feb month cell (C2 cell) only when the scroll bar cell value is e=2. The scroll bar cell value (A6 cell) is 1, so the formula has returned the #N/A error value.

  11. Like this, we must change the numbers for each month.


    Interactive Chart in Excel Example 1.12
    Because the scroll bar value is 12, we have all the months' sales value.

  12. Insert the Clustered Column chart in Excel for this newly created table.


    Interactive Chart in Excel Example 1.13
    It will create a chart like this.
    Interactive Chart in Excel Example 1.14
    Do some font change and color formatting for fonts and column bars.
     Example 1.15
    Hide the rows of the actual table (first two rows).

  13. Now, click on the Backward Button scroll bar and see the magic.


    Interactive Chart in Excel Example 1.16.0
    Because the scroll bar linked, the cell value is 5, our chart is also showing only five months' values, and the other month's values are just empty.

Example #2

Now, we will see one more interactive chart. Below is the region-wise sales data.

 Example 2

First, Create a drop-down list in excel of “Regions.”

Interactive Chart in Excel Example 2.1

Below this, it creates a table replica from the above table but deletes numbers.

 Example 2.2.0

Now, we must apply the formula as shown below.

Interactive Chart in Excel Example 2.3

Like this, change the numbers for each region.

Example 2.4

The formula says if the drop-down cell value is equal to the respective region in this table, then we need that region values from the above table.

Create a line chart and format it as we need for this chart.

Interactive Chart in Excel Example 2.5

We get the following line chart.

Example 2.6

This chart will now show the region's values as per the selection made from the drop-down list.

Interactive Chart in Excel Example 2.7

We have selected the "West" region from the drop-down list, and the chart shows only that region's values across the years.

Things to Remember here

  • Excel interactive charts require advanced Excel skills.
  • Interactive charts demand data restructuring.
  • We must use form controls to make the chart interactive.
  • We must use the pivot charts and slicers to create an easy interactive graph in excel.