Hi,
You must define three dynamic names:
"Xaxis" with
Formula:
=OFFSET(Sheet1!$E$5,,,1,IF(Sheet1!$B$2=1,3,8))
"ValA" with
Formula:
=OFFSET(Sheet1!$E$6,,,1,IF(Sheet1!$B$2=1,3,8))
and "ValB" with
Formula:
=OFFSET(Sheet1!$E$7,,,1,IF(Sheet1!$B$2=1,3,8))
and using these names in Slect Data Suorce, adding the file name in front of the name defined
for Axis label range:
Formula:
=DinamicChart.xlsx!Xaxis
for Series values:
Formula:
=DinamicChart.xlsx!ValA
and
Formula:
=DinamicChart.xlsx!ValB
see attached
Bookmarks