Jan 21 2023 04:36 AM
Hi there,
office Professional Plus 2019
I'am trying to call a defined dynamic range bij composing its name from text and cell.value
something like : = sum(indirect("Eigen_"& N43).
The dynamic range I want to call is Eigen_2014. This range is defined by
=Offset(INDIRECT("verbruik!A" & MATCH(2014;verbruik!$A:$A;0));0;5;12;1)
The formula = sum(indirect("Eigen_"& N43) causes an error #VERW! (Dutch)
Jan 21 2023 05:06 AM
Could you please specify more concretely in which sheet and cell formula doesn't work
Jan 21 2023 05:10 AM
Jan 21 2023 06:24 AM
Sorry, I see no one formula in V43 of mentioned sheet in your file. If to add in English locale
=IF(INDIRECT("jaar"&$N43),SUM(INDIRECT("Eigen_"&N43)))
it returns FALSE since period-array has no year 2014 included.
Please see in attached.
Jan 21 2023 06:27 AM
that's correct. Just click the 2014 box on the Grafieken sheet
Jan 21 2023 06:58 AM
Okay. An error is returned by INDIRECT() which doesn't support an array as the input. Workaround depend on which Excel platform/version you are.
Jan 21 2023 07:03 AM
Jan 21 2023 07:19 AM
SolutionOkay, you have no dynamic arrays. If with VBA you may try something like using INDIRECT function with dynamic array formula syntax (Excel O365) - Stack Overflow, didn't test it. Or create helper ranges with OFFSET(), name them and use in INDIRECT.
Jan 21 2023 07:23 AM
Ok I will try that. For now it's weekend :)