EDIT:
It turns out that OFFSET()
is not allowed in a SERIES()
function. Neither is INDEX()
. Even with the corrections below, your technique won't work to make the chart dynamic.
However, there are two other ways to make dynamic charts:
- Using a Table as the data source when creating the chart.
- Using a dynamic Named Formula for each of the series.
See this site for a tutorial on applying these two methods.
ORIGINAL ANSWER:
You have two issues that I can see.
For starters, you have a typo. The first argument of the first OFFSET()
should be $E$138
not $E$140
.
Secondly, you're missing the sheet references for the first arguments of both OFFSET()
functions.
If the operand after the :
operator is a hard-coded value, like the $Q$138
in 'Data'!$E$138:$Q$138
, a sheet reference for it is not required. If the operand is a function, then the same sheet reference as used for the operand before the :
must be used for the reference returned from the function.
The corrected formula is:
SERIES('Data'!$C$140;'Data'!$E$138:OFFSET('Data'!$E$138;0;12);'Data'!$E$140:OFFSET('Data'!$E$140;0;12);2)
Thank you. It still doesn't work. I get the following error: https://imgur.com/a/U8NLrMJ
– user919640 – 2018-07-02T16:27:24.453@user919640 Oops! Sorry. Should have actually tried the formula. Turns out your technique is flawed. I've updated the answer with two alternatives. – robinCTS – 2018-07-02T17:18:30.827