Manojkumar S
New Member
I had created dynamic chart based on Offset, chart will display the data from table. Currently reference for offset is static and i would like to keep it dynamic so that when the starting reference is changed i don't need to keep on changing every time.
Table Name is "Trend_Data"
Sheet Name where table is created is "Data"
Below code will find the starting location of table located. Trend_Start_Col is the Name Manager created for the below formula and used in offset formula.
Offset formula used for creating dynamic chart.
Note: Numbers mentioned in offset formula are achieved dynamically. For easy readability i hadn't provided the complete formula.
Now i need to link the Sheet name "Data" with the Name manager while updating in the chart. Above formula throws error and i could not able to achieve.
Is there any way of creating dynamic offset reference?
Table Name is "Trend_Data"
Sheet Name where table is created is "Data"
Below code will find the starting location of table located. Trend_Start_Col is the Name Manager created for the below formula and used in offset formula.
Code:
=SUBSTITUTE(ADDRESS(1,COLUMN(Trend_Data[#Headers])+1,1),"$1","")&"$"&ROW(Trend_Data[#Headers])
Offset formula used for creating dynamic chart.
Code:
=OFFSET("Data!" & (Trend_Start_Col), 0, 24, 1, 40)
Note: Numbers mentioned in offset formula are achieved dynamically. For easy readability i hadn't provided the complete formula.
Now i need to link the Sheet name "Data" with the Name manager while updating in the chart. Above formula throws error and i could not able to achieve.
Is there any way of creating dynamic offset reference?