Adding an indirect to a formula
I have a set of data in this format:
|34,3453|544,455|76777,5|4459,42|976,2743|
Just two comma-delimited numbers. I'm doing calculations on them after splitting them:
=SUM(QUERY(ARRAYFORMULA(SPLIT(TRANSPOSE(H9:P9),",")), "SELECT Col2"))
Now I'm trying to add an INDIRECT, I want calculations to always start at column H and stop at P (columns may be added or moved):
=SUM(QUERY(ARRAYFORMULA(SPLIT(TRANSPOSE(INDIRECT(""&column(G9)&"9:"&column(P9)&"9")),",")), "SELECT Col2"))
But I'm just getting an error (QUERY parameter 2: NO_COLUMN: Col2). Changing to Col1 returns 0. I'm sure this is just a syntax issue but I'm having trouble to make sense of it.
Posted May 27, 2019, 12:11 AM UTC
22