If the line chart in Excel will refer to a lot of data and information, this chart will totally be in a mess. Hence, you can use the checkboxes to create a dynamic line chart in your Excel worksheet.
Sometimes you will analyze a lot of data and information by just one line chart. However, all the information in one chart will interfere with your analysis. The image below shows a line chart that contains all the information.
The effect of this line chart is actually very terrible. Thus, you can follow the steps below and create a dynamic line chart for your data.
Arrange the Area
Here we will first insert some checkboxes into the worksheet. And if you have already added the tab “Developer” in the ribbon, you can directly move to step 5.
- Right click any of a tab in the ribbon.
- And then click the option “Customize the Ribbon” in the new menu.
- In the “Excel Options” window, check the option “Developer”.
- Next click the button “OK”. Thus, you have added the tab “Developer” in the ribbon.
- Now click the tab “Developer” in the ribbon.
- And then click the button “Insert” in the toolbar.
- In the drop-down menu, click the option “Check Box”.
- Then you need to use your mouse and click anywhere in the worksheet. Thus, you have inserted a new checkbox into the worksheet.
- Now right click this new checkbox.
- In the new menu, choose the option “Format Control”.
- In the “Format Control” window, link a cell for this checkbox. You can also directly click the cell and the cell reference will appear in the text box automatically.
- And then click the button “OK”.
- Now repeat the step 6-12 to insert other checkboxes and link cells. In this example, we will insert 5 checkboxes in total. In addition, the linked cells are in range B14: F14. And in your actual worksheet, you can use other cells as linked cells for the checkboxes.
- After that, modify the texts of all the checkboxes. Thus, all the checkboxes are in corresponding with a specific product.
- In this step, input the same column header and row header into another area in the worksheet. In order to see those data clearly, here we input in rows below the original range.
- And then input the formula into cell B17 in this example.
This formula will refer to the linked cell of the first checkbox. Therefore, when you check the checkbox, the linked cell will show “True”, and the corresponding sales volume will also appear in cell B17.
- Next click fill handle of the cell and drag rightwards to fill other cells in the same row.
- You will see that in those formulas, all the references are relative references. And in this step, you need to change the references of the linked cells into absolute references. Below is the example of the cell B17:
You need to change in other cells.
- After that, double click the fill handle of the cell B17 to fill the whole column.
- And then repeat the step 19 and fill other columns. Thus, when you check one checkbox, the corresponding numbers will appear.
Until now, you have finished the arrangement.
Create a Dynamic Line Chart
In this part, you will know how to create such a dynamic line chart.
- Click one cell within this new range.
- And then click the button “Insert” in the ribbon.
- Next click the button “Line” in the toolbar.
- In the drop-down menu, choose the line chart.
Therefore, you have inserted a line chart into the worksheet. And now you can check the certain checkbox if you need to show the trend in the chart.
- Now you can also make adjustment to make the chart better. In this step, change the size of the chart according to your need.
- Next press the button “Ctrl”.
- And then use your mouse to select all the checkboxes.
- Next right click in those checkboxes.
- In the new menu, move your cursor to the option “Bring to Front”.
- Next choose the option “Bring to Front”.
- And then move all the checkboxes into the chart area.
- If the checkboxes are mixed up with the legend, you can move them to make the chart clear.
- In this step, still select all the checkboxes.
- After that, click the tab “Format” in the “Drawing Tools” part.
- Next click the button “Align”.
- In the sub menu, click the options according to your need and arrange those checkboxes. In this example, we will click “Align Left” and the option “Distribute Vertically”. Therefore, the chart now is very clean.
- After that, don’t click any element in this worksheet. Keep those checkboxes selected. Press the button “Ctrl” on the keyboard.
- And then use your mouse to click the line chart.
- Still click the button “Format” in the ribbon.
- Next click the button “Group”.
- And then in the drop-down menu, click the option “Group”.
Thus, the checkboxes are linked with the line chart. The next time when you need to move the chart, you can drag the border of the chart. Therefore, the checkboxes will also move accordingly. Hence, they will always stay in the chart.
Delete Useless Files in Your Computer
As time goes on, there will certainly be more and more files in your computer. Those useless files will take up many storage spaces, which will lower the speed of the computer. You may also find that the performance of Excel will become worse if there exist many useless files. Hence, it is necessary to delete them. If not, the next time you will meet with Excel corruption. And to repair Excel file problem, you can invest a powerful tool. This tool can solve all the problems in Excel no matter what the reasons behind those corruptions are.
Anna Ma is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including repair Word and outlook repair software products. For more information visit www.datanumen.com