{ 72 comments }

Select & Show One Chart from Many

in All Time Hits | Charts and Graphs | Featured | Learn Excel | hacks on November 5th, 2008


Yesterday I have learned this cool excel charting trick and I cant wait to share it with you all.

The problem: I have too many charts & want to show one based on selection

You have made 3 charts to show your company performance in the last 8 years. But you don’t want to clutter the project report with all of them. You would rather want to show one chart and let user choose to see the any of the other two, like this:

The Solution: Use INDIRECT() and a nifty image hack

  • First, create your charts in a separate worksheet like this (remember you need to create all 3 charts first)
  • Once the charts are created adjust the width and heights of 3 cells and place one chart in each like above.
  • Now, go back to the sheet where you want to control the display, and define a new named range. Lets call it getChart. You can define new named ranges from menu > insert > name > define.  You will see a dialog box like this (right):
  • In the “Refers to:” area we will now write an INDIRECT() spreadsheet formula to refer to one of the 3 cells where charts are placed. A sample formula is below:IF('View them here'!$C$2="Sales",INDIRECT("'Place your charts here'!F11"),IF('View them here'!$C$2="Expenses",INDIRECT("'Place your charts here'!F12"),INDIRECT("'Place your charts here'!f13")))
  • The above formula assumes, you are going to control chart display thru cell C2 in the sheet ‘view them here’
  • Now adjust a cell’s size in this spread sheet to be big enough so that we can fit the selected chart.
  • Go to Menu > Insert > Picture > From File and insert any picture. This is just for a placeholder purpose, so any picture would do, including that of your cat’s. :)
  • Finally, select the image and go to formula bar and type =getChart (or whatever name you gave to the named range), like this:
  • Change the value in C2 and see the magic.

How this hack works?

In excel you can assign named ranges to images inserted in the sheet. So when you adjusted the cell sizes in the sheet with charts and created indirect references through INDIRECT() formula and used it in the named range, excel fetched the content of the cell (the chart) and replaced your cat’s picture with that. This powerful little trick can help you make interactive dashboards within little space.

Pretty cool, eh?

Download and see in action

Here is a link to the downloadable conditional chart display workbook. I have tested this in Excel 2003, but I guess it should work the same way in most of the modern versions of excel. Feel free to drop a comment if you see this not working in a particular version.

Subscribe for PHD Email updates and get a free excel e-book with 95 tips & tricks
Delicious Stumble it

« Prev | Home | Extracting Unique, Duplicate and Missing Items using Formulas [spreadcheats] »

Have an Excel Question?

Custom Search


Trackbacks & Pingbacks

Comments
Robert November 5, 2008

Chandoo,

you don’t have to insert a picture to create an object for ‘getChart’. Excel has a tool for this called Camera Object. It is not available via the Excel menus (and it is not documented in the help files). You first have to add the icon to one of your toolbars. Right-click on one of your toolbars and select customize and the commands tab. From tools, select Camera, and drag it to the toolbar. Clicking on the camera object takes a snapshot of the cell range you selected. You can then replace the cell range (the camera is linked to) by your range name ‘getChart’.

The Camera Object is a great tool for creating dashboards. Charley Kyd over at http://www.exceluser.com provides a lot of information and tutorials about this technique.

RYU WON JIN November 6, 2008

It is my pleasure to know your website. Thanks. Sam RYU

Jon Peltier November 6, 2008

Chandoo -
 
Nice post, nice little trick. Internally it works just like the Camera Tool, except the camera tool by default applies a white background and black border to the shape containing the picture.
 
If you’re showing a picture that may change dynamically, it’s the only way to go. The problem is that it sucks down resources, and using it a dozen times on a fancy dashboard report may result in a sluggish interface. Since it’s only chart data that’s changing, there’s an easier way to make this work, and I’ve gone ahead and posted it on my blog in Display One Chart Dynamically and Interactively.
 
Thanks as always for the inspiration.

AlexJ November 6, 2008

@Jon
Nicely done. (I was thinking about the same approach, but using offset formula and named ranges so that the source data range could change and the graph would update automatically.)

@Chandoo
There seems to be a problem with dynamic pictures when it comes time to printing - that is pictures created with the camera tool or with [Copy Picture] which have a live formula behind them (kind of like what you have there). I can’t recall the exact details of the print problem - except the the layout gets screwed up - but it goes away when you remove the formula from the picture. My workaround has been to write a small piece of vba code which sets the formula for the picture (forcing the image to change) and then deleting the formula from the picture again to leave it ’static’. I am sure you can imagine how to write that code from the change in a dropdown selection! (in fact you have already written it, I expect)

Jon Peltier November 6, 2008

@Alex
 
I used to always use offsets and named ranges, and scoff at such simple approaches as the one I posted about. But as I mature, I’ve learned that reliability and maintainability trump elegance every time.
 
The problem with Camera Tool objects is that sometimes the formatting of the object shown in the dynamic picture may be completely trashed. This sometimes seems to bee caused by one of my favorite culprits, that is, a printer driver. I don’t recall the details, but I worked with another expert to try to fix such problems a couple of years ago, and updating the printer driver made the problem go away.

Chandoo November 6, 2008

@Robert: thanks for pointing the camera tool. Fortunately I am aware of this little feature in excel. Only that I didnt try that route.

@Sam RYU: Awesome, I am happy you enjoy this site :)

@Jon: Thanks, I really cherish this comment and I mean it.

When I first used it I have realized the sluggishness and poor response immediately. But I thought it was due to several other programs running or something like that. Looks like excel might be trying to constantly update the image formula (the way it does normal formulas) and this is a costly operation.

I have seen your post and I like the idea of keeping chart manipulations to formulas alone. I use that technique all the time :)

@Alex: even though I didnt test printing, I saw print previews in Excel 2003 and they are looking fine. But as Jon already mentioned I might be having right drivers.
I agree that writing formula once and leaving the image intact is a good solution. But I didnt want to complicate the tutorial that much as it already has enough steps to confuse readers :D

Also, do you think by changing the formulas to circular reference formulas might help, that way, we only update the formula when the original indirect reference changes from the new one… ?

I didnt test it though as it might take forever to tweak the circular formulas… and they are even more difficult to explain to others.

Jon Peltier November 6, 2008

Chandoo -
 
Circular references certainly have their place, but not in a workbook designed for general purpose use. People don’t know what the error means, they become alarmed, and they don’t use the workbook, because they think it’s broken.
 
Whenever I’ve tried using circular references on purpose, even following someone else’s cookbook approach, I get tangled up. They are remarkably hard to develop, debug, and use reliably.

Chandoo November 6, 2008

@Jon: Agree… circular formulas are like recursion or multi-threading or reg-ex. You need different perspective to understand and extract the full power of them.

I have used them in the deal or no deal excel game (http://chandoo.org/wp/2008/10/03/download-excel-deal-or-no-deal-game-play/) posted here a while back and they were necessary as the only other option is to use vba.

But like you, i try to avoid using them in any sheets that are shared with others.

Jon Peltier November 6, 2008

By the way, it’s not necessary to use a single cell for the linked picture trick. You can use any contiguous rectangular range.

Justin November 6, 2008

A very nifty trick. I’ll start using it today!
I think one key advantageof this technique over a single dynamic chart is that you can easy switch chart types.

Denise November 6, 2008

Oh Mr Pointy Head Dilbert! - this is just a brilliant BRILLIANT tutorial. Many thanks indeed. I will put your tutorial into practice as soon as possible. Bye for now Mr Chandooooo.
denise

Waseem Nawaz November 7, 2008

Hi Chandoo..

This is simply great as usual. However, i need ur help to resolve one issue. Its that I have around 23 charts to display in a particular place but “IF” command can be used limited times (i guess around 7 or 12).. can we use anyother formula instead of “IF” or do you have any other solution??

Cheers

Ketan November 7, 2008

@Chandoo— it is fundoo idia…
@John— thanx for giving hint of camera..

I had used one more tool– the horizontal scroll bar for changing the slides — like in power point…

Enjoyed !

Jon Peltier November 7, 2008

Waseem -

Put your list of items to choose from in a column (e.g., E1:E23). Use this range in the list source of the data validation for the cell containing the selected chart. Use this for the Refers To formula for getChart:

=OFFSET(’Place your charts here’!F10,MATCH(’View them here’!$C$2,’View them here’!$E$1:$E$23,0))

Chandoo November 7, 2008

@Denise, @Justin, @Ketan: Thank you :)

@Waseem: As Jon suggested you can use offset and match() to solve this.

another way I can think of is:

instead of naming the charts in data validation as Sales, Expenses and Profits, you can name them as 1 sales, 2 expenses 3 profits.
Then you can extract the number using left() and find() and feed this to indirect().

Let me know if you still having difficulty making this work.

AlexJ November 9, 2008

@ Jon RE: Offsets and Named Ranges
I’ll concede the simplicity/maintainability factor.

Unfortunately, I find myself in the mode of developing tools for users who won’t understand even the most simple mechanisms. I am trying to develop functionality which is to some degree “user-proof”, so things like dynamic extensible ranges are crucial. Guess I’m stuck in that mindset.

Justin November 9, 2008

Hi,
A little of topic, but, thinking about dashboards / KPI reports you could use indirect to reference images or drawing objects, or even create the plot matrix thingy (from last week I think) using smileys or some other icon set.
Good for corporate division logos on standard reporting format spreadsheets too.

Ketan November 10, 2008

@ Chandoo & Waseem==

Use one counter cell and offset command. Using these, one can enjoy ‘n’th no. of slides…

Try it ! Gud Luk !

Chandoo November 10, 2008

@Justin: You are absolutely right. Actually that is the first thing that came to my mind when I learned this trick. I will probably write another tutorial on how you can use this image hack in dashboards.

@Ketan: Thanks for sharing the idea with us. :)

Mountain November 11, 2008

Chandoo great post really helpful. Do you have a youtube type video tutorial for this as it is a rather complex trick?

Chandoo November 12, 2008

@Mountain: Thank you so much for the words. I am sorry, but I do not have any video tutorial to make this simpler to understand. Did you try downloading the workbook provided? It might help answer few questions you may have.

Also, feel free to ask your doubts, we have a small but very passionate community here who would like to help each other to learn and become successful.

Welcome to PHD blog :)

brodiemac November 13, 2008

Any instructions on how this should work in Excel 2007? I’ve fumbled along but I can’t get it to work. I’ve even downloaded the example spreadsheet which works in 2007 but I still cannot create one. A couple of things:

- There seems to be some data validation in the example spreadsheet but no mention of it in the instructions.
- For some reason, I cannot access the formula bar when I have the picture selected in my work. I can in the example spreadsheet which I find odd.

I really want this to work since I have several spreadsheet that this would be perfect for.

Chandoo November 13, 2008

@Brodiemac: Welcome…

creating a data validation list in excel is simple. You can find more about creating one here:

http://chandoo.org/wp/2008/08/07/excel-add-drop-down-list/

Also, you can edit the data validation in the downloaded excel by selecting the dropdown list cell and going to menu > data > validation
and adding your own criteria like operating margins etc.

Also, did you try saving your workbook in excel 2003 formats and then accessing the formula bar?

Unfortunately I donot have excel 2007 to replicate your problem. Hence I request any of the readers to volunteer and clarify Brodiemac’s doubts.

Robert November 13, 2008

Brodiemac,

with Excel 2007 use Insert|Object instead of Insert|Picture. Everything else works as Chandoo described in the post with Excel 2007 as well.

Jon Peltier November 13, 2008

@Chandoo: “Unfortunately I do not have excel 2007 to replicate your problem.”
 
Unfortunately?? I’ve spent about a day and a half this week trying to make a chart that works fine in Excel 2003 work at all in 2007. It’s been a process of:
 
1. Hmm, that doesn’t work.
2. Let’s try this instead.
3. Good, now it works, but…
4. This doesn’t work either.
5 Go to 2.

Among the problems, if you’re following t home:
1. In Excel 2007, XY charts don’t work very well on charts with line chart date axes.
2. In Excel 2007, ActiveSheet.Shapes(ActiveSheet.Shapes.Count) isn’t the last shape you’ve added.
3. Some complicated Excel 2003 charts lose their custom (linked to cells) data labels when opened in 2007.
4. In a complicated Excel 2003 chart, which has two 4-point area chart series to highlight a background range, and an XY series with custom markers (pasted shapes) and more then 4 points, only the first four points appear with their custom markers, though the code that applies the markers does not fail, and the data labels for the marker-less points do in fact appear.
 
And those were just the issues from this morning.

Chandoo November 13, 2008

@Jon.. you can hear me laughing out loud if you are somewhere near Seattle… :D

In “Unfortunately I do not have excel 2007 to replicate your problem.” , it is unfortunate that I couldn’t help him.. not because I don’t have excel 2007. I am actually scared of even trying it after all these posts and remarks from you guys :D

@Robert: Awesome… thanks for the quick comment.

@Brodiemac: did you try it?

brodiemac November 13, 2008

@Robert “with Excel 2007 use Insert|Object instead of Insert|Picture. Everything else works as Chandoo described in the post with Excel 2007 as well.”

That worked, thanks.

@Jon Peltier “=OFFSET(’Place your charts here’!F10,MATCH(’View them here’!$C$2,’View them here’!$E$1:$E$23,0))”

I still can’t get this to work. Excel complains that it’s missing the Cols parameter.

brodiemac November 13, 2008

Chandoo, don’t be scared of 2007. I really like it a lot. The menu structure takes a few hours to get used to but now that I know it as well as previous versions, I can actually get things done much faster now. Trying to follow instructions written for older version can be a bit confusing though (this page, case in point).

Frederick November 14, 2008

Hi Mr PHD,

I attempted to make some changes to strive for a solution which is more “elegant”… please check your mailbox.

However, it’s still a neat trick - naming charts/images as a range…

Jon Peltier November 14, 2008

brodiemac -
 
Try this. I posted without testing. If I’d tested, I’d havee caught the eproblem in two seconds and fixed it in three.
=OFFSET(’Place your charts here’!F10,MATCH(’View them here’!$C$2,’View them here’!$E$1:$E$23,0),0)
 
BTW, I’m not at all scared of 2007, but it frustrates the you-know-what out of me. It will seem to be working fine, and I’ll forget that it’s a different animal than 2003. Then one day I’ll have three or four hours when nothing goes as expected, nothing goes the way it used to, things are upside down and backwards.
 
Chandoo - I’m far from Seattle, at the other end of route I-90 almost in Boston. But I’ll fill in the sound of laughter.

Chandoo November 14, 2008

@brodiemac: “Chandoo, don’t be scared of 2007. I really like it a lot…”
I am actually purchasing it this thanksgiving. Hopefully I will be using it when I go back to India by Christmas.

@Frederick: Thank you so much taking time to prepare this. I have uploaded it here:
http://chandoo.org/wp/wp-content/uploads/2008/11/select-chart-to-display-offset.xls

@all: Please feel free to download Frederick’s version and see if it helps your situation.

Jim January 23, 2009

Firstly thanks Chandoo for such a great site.

Trying to create a dashboard from multiple data sources. Had problems with the charts as pictures resizing on print preview. Anyone with a workaround or suggestion as to how to overcome?

Thanks.
J.

Chandoo January 24, 2009

@Jim: Welcome to PHD and thanks for the comments.

Can you explain what kind of resize problems you are having. Ideally, printing should be more or less same as what you have laid out on the spreadsheet. May be you can post some screenshots so that we can understand what problem you are having.

Venkateswarlu January 24, 2009

Hi Team,

I’m trying to call more than 4 charts by using the If condistion in reference, but it’s not working. Is their any alternative way for call more charts

Venkateswarlu January 24, 2009

Hi Team,

Is their any alternative way to call more than 4 charts.

Thanks

Venku

Chandoo January 24, 2009

@Venkateswarlu : the IF() formula should work all the way up to 7 conditions (thus 8 possible values) There might be some other reason why your chart is failing. Did you define the named range properly?
Also, you can try using CHOOSE() formula instead of IF().

Michael January 26, 2009

Using Excel 2007, I need a chart/graph that has the following - looks like an upside down T:
x- axis, numbered from left to right (both sides positive - no negative; represents the number of drops of a solution added to an unknown buffer; left side 10 to 0 is NaOH; right side 0 to 10 is HCL) 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10; y-axis (pH) starting at 0 and going up to 14 (no negative values). I can graph a single titration curve on a graph but don’t know how to do both and label them as directed (the upside down T). I am told that this is possible but the professor will not demonstrate it.
Thanks.

Chandoo January 26, 2009

@Michael: Welcome to PHD and thanks for your comments.

You can format both negative and positive numbers as positive numbers using this custom formatting code: 0;0

select the horizontal axis and right click and select format axis. in the number tab, select “custom” as category and in the format code write “0;0″ to get the desired effect.

Visit this post learn more about number formats: http://chandoo.org/wp/2008/06/16/formatting-numbers-in-excel-few-tips/

earthquakes February 27, 2009

Hi Chandoo!

I love this page… very interesting stuff!! And great job of explaining things…even I got through it alright ;)

So, like a few others, I have quite a few graphs to show (13). I’ve gotten everything to work smoothly for a a portion of the graphs, but now that I’ve added more graphs, I realize that I’ve reached my “If” limit.

It seems like the offset thing would work well for simple graphs, but my graphs are damn complicated (3D and all sorts of funky aside from that) so I think it would take months to get all the different characteristics of the graphs to show up correctly.

Could you help me work out the one idea you had: “instead of naming the charts in data validation as Sales, Expenses and Profits, you can name them as 1 sales, 2 expenses 3 profits.
Then you can extract the number using left() and find() and feed this to indirect().” Maybe that would be able to work for me? Any help/explanation is much appreciated! Or maybe you have another idea?

~eq

Chandoo February 28, 2009

@Earthquakes: Thank you so much and welcome :)
When you have too many charts to show, it might help to use INDEX(), OFFSET() and even use form controls as they are more elegant and robust to manage. Peltier provides an excellent tutorial describing this technique here: http://peltiertech.com/WordPress/2008/11/06/display-one-chart-dynamically-and-interactively/

Another option is to try renaming the data validation cell values from sales, expenses etc. to 1. sales, 2. expenses etc. and then use left() and find() to parse out the number and then pass this to INDIRECT().

So, instead of IF('View them here'!$C$2="Sales",INDIRECT("'Place your charts here'!F11"),IF('View them here'!$C$2="Expenses",INDIRECT("'Place your charts here'!F12"),INDIRECT("'Place your charts here'!f13")))

We can have INDIRECT("'Place your charts here'!F"&10+parsed-number&""))

I havent checked this function, but I assume it should work. Let me know if you face some difficulty. I will try to help you :)

Maikkil Mathew March 2, 2009

Dear Chandoo,
Thank you for this trick. Actually this helped me in different way. I look for some ideas to make some thing like a photo database. Beacuse I’m handling so many styles details (garments) in my office. I had prepared a workbok in Excel. Second woksheet using as a databse. First sheet contais a page like report. I’m using Vlookup() to display the deatils. When I enter Style No in the cell it will display balance deatils. But I didn’t had the ideatto display the picture of the styles with the details. Now it is possible. Thank you again.

Best Regards,
Maikkil Mathew

fieldhockeystar March 2, 2009

Dear Chandoo:

I am also having problems with printing the dynamic chart. In my case, I either want the chart to be seen or not seen depending if I choose a certain population.

I have screen shots: the original with the chart sized appropriately, the print screen menu, and the print screen look (which when I go back to my spreadsheet the graph is also changed as well). How do I send them to you?

~fh*

Chandoo March 3, 2009

@Maikkil Mathew : Welcome to PHD and I am so happy you have found a nifty use of this trick. Thank you for sharing with us all. You have demonstrated the robustness of excel and how it can be used creatively.

Chandoo March 3, 2009

@Fieldhockeystar: Welcome to PHD and thank you for asking your question.

Printing seems to be a problem when images have formulas attached to them. Earlier, AlexJ faced the same problem (4th comment from top) and it seems to be either print drivers or something unknown to be blamed.

You said image size is changing. Did you use a different image size when nothing needs to be shown?

Btw, you can upload your screencaps to either flickr or photobucket and leave the urls in comments. That way everyone can see your screenshots and someone might be able to help you :)

Maikkil Mathew March 3, 2009

Dear Chandoo,
Vlookup() not working with this trick so I add one more column to the Database Eg: like this
—– A——-B————C————-D——————E——–
-1–ID—-Name—-Phone No.—-Photo———–Photoref
-2–11—-Rose—-2345324——@@@—–=cell(”Address”,D1)
—————————————————————————–
Photo column contains photos and Photoref Column contains formula “=cell(”address”,D1)” for first Row and copy the same in entire column.
With the help of Vlookup() displaying all other details in first sheet. If enter IDNo. in the cell A1 it will show Name and Phone No.

one hidden / white text cell in any corner (here H10) contain formula =”’sheet2′!” & VLOOKUP(Sheet1!$a$1,range,5,FALSE) . Range is the name of range contains data in sheet2.
Now this cell (H10) shows —– ’sheet2′!D1— like this. It will change with the change of the ID No. in A1

Name a this formula “=INDIRECT(Sheet1!$H$10)” as “GetPic”

Now as you did, insert and select a picture and type in formula bar “=getpic”

Now the Name, Phone no and Photo will change with the IDNo in A1

I think this will help somebody looking for a photo database in Excel like me. And I think now this way will handle thousands of charts with the help of Chart ID in another column.

Best rgards,
Maikkil Mathew

fieldhockeystar March 3, 2009

Hi Chandoo:

Ok - I’ve uploaded four photos: original, print preview menu, print preview, and then after print preview to showing the “scrunching” of the chart.

Any suggestions?
Thanks
~fh*

Chandoo March 4, 2009

@fieldhockeystar: Thanks for taking the trouble to upload the images. I have seen them and it looks weird. Often when you switch between views excel (happens in word too) incorrectly displays few objects. Although I think this is not a consistent behavior. The important question here, is your image dimensions are changing too, or just the layout? If it is the later, then you can clean it up running formulas F9 or scrolling down (not sure if they work, as I couldnt replicate this problem)

I believe this problem is something that originates from printing / preview functionality than from our little image trick. I may be wrong….

I am sorry, but I cant really help you at this point.. If you find a solution, let us know, and as usual we will give you a donut… :)

Chandoo March 4, 2009

@Maikkil: several thanks to you for sharing your trick with all of us. I will try this myself and will share with readers if possible. I am very happy to have readers like you :)

Maikkil Mathew March 5, 2009

Dear Chandoo,
I’m very happy to hear that you are trying this yourself and share with others. Because I couldn’t upload all details such as screen shot of the worksheet etc. If you provide your email then We can give the details also. You don’t need to thank me, because this is your idea I used in diferent way thats all friend.
Thanks and Best Regards,
Maikkil Mathew

Pamela March 18, 2009

Hello,
Thank you for this information. I have more than 3 charts to show so having problems in the refer to section (formula too long) - not sure how to do index() and offset(), can you help?

Ryan April 26, 2009

Instead of having to select an option from the pull down menu (expenses, sales, profits), is it possible to have a link do the same task? For example, In my spreadsheet I have a list of Departments. I want to be able to click on a department from that list and have it display the appropriate chart. Is this possible?

Jon Peltier April 26, 2009

Ryan -

You could do this a few ways. I might choose to use a listbox instead of a dropdown, so all of the options are visible without having to pull down the list. Otherwiase it works the same.

Instead of using official links, you could use a Worksheet_SelectionChange event procedure to detect when a cell was selected, and recreate the charts with that cell’s data.

Manik May 12, 2009

Dear Chandoo, I could not manage to implement this lession properly. Could you please teach me in a simple way. I am sorry I couldnot implement it.

Chandoo May 13, 2009

@Manik: Unfortunately, this tutorial assumes some basic understanding of formulas and excel tools. May be you want to download the file and see it for yourself. Also try building dynamic charts using data filters: http://chandoo.org/wp/2009/02/12/make-a-dynamic-chart-using-data-filters/

Martin May 21, 2009

Hi,
I using your ‘Select & Show One Chart from Many’ chart and experience a problem when adding more charts.
The indirect worksheet formula doesn’t allow me to ad more into the ‘refer to’line - Is there a restriction in data entering?
as example:
=IF(’View them here’!$C$2=”Sales”,INDIRECT(”‘Place your charts here’!F11″),IF(’View them here’!$C$2=”Expenses”,INDIRECT(”‘Place your charts here’!F12″),IF(’View them here’!$C$2=”MFG”,INDIRECT(”‘Place your charts here’!F14″),INDIRECT(”‘Place your charts here’!f13″)))
can you help me
Martin

Chandoo May 24, 2009

@Martin: Can you tell us a bit more on what problem you are facing when you use more conditions ?

Also, you may want to check a simpler and easier method to get dynamic charts here: http://chandoo.org/wp/2009/05/19/dynamic-charts-in-excel/

Glenn June 25, 2009

I have done everything to get select & show to work, but I can’t get the graph to show up. The formula is correct, but it wont let me put anything in the formula bar when I select my picture. I’m using excl 2007.

Thanks for any help

Chandoo June 25, 2009

@Glenn… Welcome to PHD and thanks for asking a question.

You should use insert > object instead of insert > picture in excel 2007. Everything else should work pretty much the same. Let me know if you face some difficulty.

Also, there is another simpler way to do this. I suggest you check this post too: http://chandoo.org/wp/2009/05/19/dynamic-charts-in-excel/

Glenn June 25, 2009

I reaaly do appreciate the info. If I had read all the previous info I would have seen the same thing you wrote to someone else. That work great.
I have about 33 graphs. Will I be able to get all this in 1 formula?

Thanks again the help

Chandoo June 25, 2009

@Glenn: You are welcome. 33 Graphs.. hmm.. I guess you can use the CHOOSE() function (http://chandoo.org/excel-formulas/choose.html ). Better thing would be to use the data-filter based chart filter technique (linked in the above comment)

RSS feed for comments on this post. TrackBack URI

Leave a comment

   Name (required)

   E-mail (required, never displayed)

   URL


Join Our Community