Reputation: 13
I have this formula in one of the columns:
=(MAX(C2:F2)-MIN(C2:F2))/AVERAGE(C2:F2)
Currently, I am manually updating this formula column every time a new response has been added from Google Forms. I tried using the ARRAYFORMULA
, but I cannot get it to populate the new rows.
Upvotes: 1
Views: 63
Reputation: 1
={"ARRAY FX"; ARRAYFORMULA((QUERY(TRANSPOSE(QUERY(TRANSPOSE(C2:F),
"select "®EXREPLACE(JOIN( , IF(LEN(C2:C),
"max(Col"&ROW(C2:C)-ROW(C2)+1&"),", )), ".\z", "")&"")), "select Col2")-
QUERY(TRANSPOSE(QUERY(TRANSPOSE(C2:F),
"select "®EXREPLACE(JOIN( , IF(LEN(C2:C),
"min(Col"&ROW(C2:C)-ROW(C2)+1&"),", )), ".\z", "")&"")), "select Col2"))/
QUERY(TRANSPOSE(QUERY(TRANSPOSE(C2:F),
"select "®EXREPLACE(JOIN( , IF(LEN(C2:C),
"avg(Col"&ROW(C2:C)-ROW(C2)+1&"),", )), ".\z", "")&"")), "select Col2"))}
Upvotes: 1