I am rephrasing the question. I solved that part but now stuck on next step.
I am using Excel 2007. I have a chart and want to draw 2 lines with different data from same sheet (sheet name: Gamma). Then I have scrollbar want to connect with this chart. For that I am creating Range names and using name range to create lines on chart because data and number of rows will vary as per need.
For primary axis: My name ranges are GR_On_Chart_1 = =WPTest!$AS$1
GR_On_Chart_2 = =WPTest!$AS$2
ScrollVal_1 = =WPTest!$AS$1
ScrollVal_2 = =WPTest!$AS$2
I created 2 set of Range name with different data (same sheet). I am struggling with it about a week now and burned my mind. Now I am asking for help from you experts. Please help
1st set of Named range: for first line on chart
=INDIRECT("Gamma!B"&WPTest!ScrollVal_1&":B"& WPTest!ScrollVal_1+ WPTest!GR_On_Chart_1)
=INDIRECT("Gamma!C"&WPTest!ScrollVal_1&":C"& WPTest!ScrollVal_1+ WPTest!GR_On_Chart_1)
2nd set of Named range: for 2nd line on chart
=INDIRECT("Gamma!AL"&WPTest!ScrollVal_1&":AL"& WPTest!ScrollVal_1+ WPTest!GR_On_Chart_1)
=INDIRECT("Gamma!AM"&WPTest!ScrollVal_1&":AM"& WPTest!ScrollVal_1+ WPTest!GR_On_Chart_1)
What I need help for:
a) when I scroll data of both lines should display accordingly, right now it is displaying in ugly manor. Not on the proper place. Either shrinking too much or expanding too much.
b) when data ends then scrollbar should not be able to scroll (right now if data ends and I scroll it keep scrolling and display on chart mess up while vertical axis on left side of the chart values going into 0.1, 0.2 etc.
If anyone can help and I can breathe. I am not expert and only copied these formulas from web and try to use but stuck and my job really need it working. I might be doing totally wrong. Please correct.
Attach is excel file. I deleted extra stuff to keep file size small.
I am using Excel 2007. I have a chart and want to draw 2 lines with different data from same sheet (sheet name: Gamma). Then I have scrollbar want to connect with this chart. For that I am creating Range names and using name range to create lines on chart because data and number of rows will vary as per need.
- Primary axis on chart for 2 lines
- Secondary axis on chart (Horizontal /lateral lines) they are ok for now
For primary axis: My name ranges are GR_On_Chart_1 = =WPTest!$AS$1
GR_On_Chart_2 = =WPTest!$AS$2
ScrollVal_1 = =WPTest!$AS$1
ScrollVal_2 = =WPTest!$AS$2
I created 2 set of Range name with different data (same sheet). I am struggling with it about a week now and burned my mind. Now I am asking for help from you experts. Please help
1st set of Named range: for first line on chart
=INDIRECT("Gamma!B"&WPTest!ScrollVal_1&":B"& WPTest!ScrollVal_1+ WPTest!GR_On_Chart_1)
=INDIRECT("Gamma!C"&WPTest!ScrollVal_1&":C"& WPTest!ScrollVal_1+ WPTest!GR_On_Chart_1)
2nd set of Named range: for 2nd line on chart
=INDIRECT("Gamma!AL"&WPTest!ScrollVal_1&":AL"& WPTest!ScrollVal_1+ WPTest!GR_On_Chart_1)
=INDIRECT("Gamma!AM"&WPTest!ScrollVal_1&":AM"& WPTest!ScrollVal_1+ WPTest!GR_On_Chart_1)
What I need help for:
a) when I scroll data of both lines should display accordingly, right now it is displaying in ugly manor. Not on the proper place. Either shrinking too much or expanding too much.
b) when data ends then scrollbar should not be able to scroll (right now if data ends and I scroll it keep scrolling and display on chart mess up while vertical axis on left side of the chart values going into 0.1, 0.2 etc.
If anyone can help and I can breathe. I am not expert and only copied these formulas from web and try to use but stuck and my job really need it working. I might be doing totally wrong. Please correct.
Attach is excel file. I deleted extra stuff to keep file size small.