Excel has some pretty kick ass unique features and one of them is the Camera Tool. On the face of it, it looks like no big deal. But the camera tool when combined with a formula and options buttons, can help you make a pretty awesome dynamic chart
Let’s get right into it!
So let’s say we have this data..
Revenue Split by Months and Customers
And we have made 2 charts from the above data
Our objective is to show one chart at a time (either Sales by Months or by Customer)
Now Let’s Create the Option Buttons..
- From the Developer Tab [Related: Activate the Developer Tab in Excel]
- Go to the Insert Drop Down
- And Click on Option Button (Form Control)
- Using the cursor draw 2 Option Buttons and rename them as “Months” and “Customers”
Connect the Option Buttons to a cell
- Name a cell (above your option buttons) as “Choice”
- Right click on the Option Button and go to Format Control
- In the Cell Link : Type the name of the cell “Choice”
- Now when you click on the Option Buttons the named cell will indicate 1 or 2 (depending on the option button selected)
Let write a Choose formula for picking up the chart range..
[Related: Learn how the Choose formula works]Note that :
- The ranges selected in the Choose Formula are completely covering the cells where the chart is kept.
- So you need to arrange your charts in such a manner that they fit in a range of cells
- The ranges are also locked ($ sign). If you don’t do that we would have problems while naming the formula later
- Don’t worry about the #VALUE! error
Now name this Formula as Pic.Choice
- Copy the Choose Formula that we have just created
- Open the Name Manager (Ctrl + F3)
- Create a New Name – Pic.Choice
- Paste the choose formula in the Refers to box
Time to use the Camera Tool..
- Select the range covering any of the charts
- Then click on the camera [Related: activate the camera tool]
- Now when you click anywhere on the spreadsheet the picture of selected cells will be pasted
Final Step : Link the Picture to the Choose Formula
- Select the Picture clicked by the camera tool
- Go to the formula box and link it to the choose formula =Pic.choice
- Make sure to press enter after you type the name of the formula
- Done!
Caution: If you reposition the charts on the sheet. The range that you have selected the choose formula will no more be captured the chart
How does the Chart work..
If you have found this a bit tricky, let me help you to get your head around this
- The picture from the camera tool was linked to the range covering the chart (which was selected manually)
- But when you link the picture to the choose formula the picture becomes dynamic and gets connected with the option buttons
- So when you change the option buttons the range selected also changes, so does the chart!
Other Interesting Chart Types
- Learn how to work with Camera Tool from Scratch
- Do a Picture Vlookup in Excel
- Threshold Chart in Excel
- Check button Chart
- Make a Chart with a REPT Formula