Msadiqrajani
Board Regular
- Joined
- Jan 17, 2009
- Messages
- 107
Hi,
I have different dataset of same size on different.
What I want is to choose Sheet name from dropdown list and Chart got data of that sheet.
Suppose I have 3 sheets Sheet1, Sheet2 and Sheet3.
When I select Sheet 1 from dropdown list Chart will be created with data on that sheet.
What I have done is have created dynamic name range using Indirect function thats working. But when I am using this in chart as range it throws error.
This is formula I am using creating Dynamic name Range
This formula for chart value.
I have different dataset of same size on different.
What I want is to choose Sheet name from dropdown list and Chart got data of that sheet.
Suppose I have 3 sheets Sheet1, Sheet2 and Sheet3.
When I select Sheet 1 from dropdown list Chart will be created with data on that sheet.
What I have done is have created dynamic name range using Indirect function thats working. But when I am using this in chart as range it throws error.
This is formula I am using creating Dynamic name Range
Code:
=INDIRECT("'"&Model!$B$2&"'"&"!A3:A183")
Using Cell B2 Value as Sheet name
This formula for chart value.
Code:
=SERIES(,Model.xlsx!chDate,'S&P 500'!$B$2:$B$183,1)