array formulas - google sheets - Arrayformula -
array formulas - google sheets - Arrayformula -
i have created form using google forms, , want automatically check answers when new submit done. when user submit his/her question, new line added in responses sheet. need add together magic ;)
so, in responses sheet, have right answers in sec line...something this
b c 1 2 rightanswer1, rightanswer2, rightanswer3....
using arrayformula function, have added new colums (column d,e,f,g , on) on every row checking against right reply on line 2.
the formula goes this;
=if(arrayformula(a3:a=a2),1,0)
and works charm :)
but, want add together column @ end of each row sum of right answers, lets column z on every row...this want sum 1's (correct answers).
i have tried this;
=if(arrayformula(<any kind of check true>),sum(d3:z3),0)
this homecoming sum of d3:z3 on every line, , not want. want sum columns on line-number added. have tried alter look in several ways , having in arrayformula expression, altering sum look (d3:d) work on current line, without luck.
i have search web answers, found nil help me... have suggestions?
one way:
=arrayformula(if(len(d3:d),sumif(if(column(d3:z3),row(d3:d)),row(d3:d),d3:z),))
although possible "skip middle man" , process raw info alone; assuming answers in a2:z2, , info sum in a3:z, then:
=arrayformula(if(len(a3:a),countif(if(a3:z=a2:z2,row(a3:a)),row(a3:a)),))
google-spreadsheet array-formulas
Comments
Post a Comment