xenou
MrExcel MVP
- Joined
- Mar 2, 2007
- Messages
- 16,836
- Office Version
-
- 2019
- Platform
-
- Windows
What is the best way to accomplish the following:
I've tried
a. forms control linked to link cell
b. link cell feeds a target cell with the address of the data range (based on the selection)
c. Named range (MySeries) uses indirect and the cell from (b) to reference the data for the chart series. I.e. =Indirect(rngTarget) where the value in rngTarget is something like Data!A1:A10, which should be my data for the selected category.
Anyway, when I put (c) into the chart (=Book1.xls!MySeries), nothing shows...
The strategy is similar to that shown here:
http://excel.tips.net/Pages/T002376_Easily_Changing_Chart_Data_Ranges.html
Should I just try again and see if its some stupid mistake I made? Is there a another good example or a better way to do this?
I should like to avoid VBA but obviously I could write code to change the series ranges if it comes to it.
- to have a forms listbox or combo box with 3+ categories to choose (Animals, Vegetables, Minerals)
- to have a chart that will dynamically show data depending on the choice.
I've tried
a. forms control linked to link cell
b. link cell feeds a target cell with the address of the data range (based on the selection)
c. Named range (MySeries) uses indirect and the cell from (b) to reference the data for the chart series. I.e. =Indirect(rngTarget) where the value in rngTarget is something like Data!A1:A10, which should be my data for the selected category.
Anyway, when I put (c) into the chart (=Book1.xls!MySeries), nothing shows...
The strategy is similar to that shown here:
http://excel.tips.net/Pages/T002376_Easily_Changing_Chart_Data_Ranges.html
Should I just try again and see if its some stupid mistake I made? Is there a another good example or a better way to do this?
I should like to avoid VBA but obviously I could write code to change the series ranges if it comes to it.