1

I want an array formula to use with Google Forms data to automatically calculate running metrics on my data.

In this case, in column BF I want it to auto-calculate whenever new responses come in.

I'm trying to use this formula below but isn't working for all column, just for the first line.

=ArrayFormula(If(isblank($BF$3:$BF);"";(INDEX($C$1:$BD$1;0;MATCH(MAX($C3:$BD3);$C3:$BD3;0)))))

My Google Sheet

What I'm doing wrong?

My Google Sheet:

https://docs.google.com/spreadsheets/d/1iD75djqdY8qtClEHpKUEvAS55bP0ARv9AnDUz9mFBuc/edit?usp=sharing

4
  • What is the formula on the second line? Commented Feb 19, 2020 at 14:57
  • share a copy of your sheet with fake data Commented Feb 19, 2020 at 15:47
  • @player0 ok, now there is a copy! Commented Feb 19, 2020 at 15:58
  • @indofraiser look, now there is a copy of my sheet. Commented Feb 19, 2020 at 15:59

1 Answer 1

1

delete range BE:BF

paste this in BE1:

={"MAX"; ""; ARRAYFORMULA(QUERY(TRANSPOSE(QUERY(TRANSPOSE(C3:BD); 
 "select "&TEXTJOIN(","; 1; IF(A3:A<>""; 
 "max(Col"&ROW(A3:A)-ROW(A3)+1&")"; ))&"")); 
 "select Col2"; 0))}

paste this in BF1:

={"TIPO"; ""; ARRAYFORMULA(IF(A3:A="";;TRIM(TRANSPOSE(QUERY(TRANSPOSE(
 IF(C3:BD=QUERY(TRANSPOSE(QUERY(TRANSPOSE(C3:BD); 
 "select "&TEXTJOIN(","; 1; IF(A3:A<>""; 
 "max(Col"&ROW(A3:A)-ROW(A3)+1&")"; ))&"")); 
 "select Col2"; 0); C1:1; ));;99^99)))))}

0

Sign up to request clarification or add additional context in comments.

4 Comments

Is it possible I add two more columns beside column "TIPO" with the second and third highest value? If yes, which code can I use? Thanks!
It doesn't work, when I change "select Col 2 to select Col 3" returns a lot of "#VALUE! #VALUE!..." :(
man could you help me with this one? :) stackoverflow.com/questions/69004977/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.