Hello,
I am trying to conditionally change a chart based on a pull-down menu. I have been following the guide found here with mixed results:
http://chandoo.org/wp/2008/11/05/select-show-one-chart-from-many/
I am using excel 2010. I have followed the steps outlined and it mostly works but I have run into some really strange results. Sometimes (but not always) the picture shows more cells than what is defined in my INDIRECT statement. Here is the statement I am using (I've defined the name as getCht2):
=IF(Report!$AE$9="Sales",INDIRECT("'Charts'!$c$2"),IF(Report!$AE$9="Cancel",INDIRECT("'Charts'!$c$3"), IF(Report!$AE$9="Fulfillment",INDIRECT("'Charts'!$c$4"),IF(Report!$AE$9="activation", INDIRECT("'Charts'!$c$5"), IF(Report!$AE$9="support",INDIRECT("'Charts'!$c$6"),IF(Report!$AE$9="CSAT",INDIRECT("'Charts'!$c$7"), IF(Report!$AE$9="Cost",INDIRECT("'Charts'!$c$8"),IF(Report!$AE$9="usage", INDIRECT("'Charts'!$c$9")))))))))
This works for some entries, but not others. When I select Sales, the picture compresses cells c2:e2 into the frame. When I chose Cancel, the picture compresses c3:d3. All others work fine.
I am doing this for 3 different pictures and 1 works perfectly, while the other two show errors like this. I've triple checked the formulas, and cannot find the problem. Is this a 2010 issue? Is there a better way to accomplish this goal (conditionally showing a graph based on a drop-down menu) in 2010?
Any help would be greatly appreciated!
Nick...
I am trying to conditionally change a chart based on a pull-down menu. I have been following the guide found here with mixed results:
http://chandoo.org/wp/2008/11/05/select-show-one-chart-from-many/
I am using excel 2010. I have followed the steps outlined and it mostly works but I have run into some really strange results. Sometimes (but not always) the picture shows more cells than what is defined in my INDIRECT statement. Here is the statement I am using (I've defined the name as getCht2):
=IF(Report!$AE$9="Sales",INDIRECT("'Charts'!$c$2"),IF(Report!$AE$9="Cancel",INDIRECT("'Charts'!$c$3"), IF(Report!$AE$9="Fulfillment",INDIRECT("'Charts'!$c$4"),IF(Report!$AE$9="activation", INDIRECT("'Charts'!$c$5"), IF(Report!$AE$9="support",INDIRECT("'Charts'!$c$6"),IF(Report!$AE$9="CSAT",INDIRECT("'Charts'!$c$7"), IF(Report!$AE$9="Cost",INDIRECT("'Charts'!$c$8"),IF(Report!$AE$9="usage", INDIRECT("'Charts'!$c$9")))))))))
This works for some entries, but not others. When I select Sales, the picture compresses cells c2:e2 into the frame. When I chose Cancel, the picture compresses c3:d3. All others work fine.
I am doing this for 3 different pictures and 1 works perfectly, while the other two show errors like this. I've triple checked the formulas, and cannot find the problem. Is this a 2010 issue? Is there a better way to accomplish this goal (conditionally showing a graph based on a drop-down menu) in 2010?
Any help would be greatly appreciated!
Nick...