@
Vignesh Veerasamy
First take X-Axis, This has to be dynamic as when the data grows it should consider further dates also.
So the formula for Axis is :
=OFFSET(Sheet1!$B$4,0,0,1,
5)
So OFFSET function is generating a range from B4 to 5 cells (RED 5) since there are 5 dates I hard coded it to 5 otherwise in general you can use something like COUNTA($B$4:$Z$4) which will give the width of range.
Now come to series, so as per data layout there are some symmetry:
1. Both the option of dropdown has four series.
2. All the series are together in a group of 4 in consecutive rows.
So we had devised helper cells in the range A17:B24. Where in column A has two option with a gap of 3 rows and column B has number of rows to displace from for each selection.
Now see the formula for one series.
=OFFSET(Sheet1!$B$5,
OFFSET(Sheet1!$B$17,MATCH(Sheet1!$F$15,Sheet1!$A$17:$A$24,0)-1+0,,1,1),0,1,5)
This will give a range of data. The blue OFFSET will give o. of rows to displace from B5. Rest 0 column to displace from B5, height of 1 row and width of 5 columns is hard coded.
So row displace will get a number from B17:B24 based on drop down selection.
Try executing these formulas in a cell and see the intermediate result.
Regards,