質問

Let's say I have data in a spreadsheet like so:

Correct     Bob    Alice
   True    True    False
   True    True     True
  False   False    False
   True   False    False
            XXX      YYY

As you can see Bob got three questions correct, while Alice got two.

What formula can I put in locations XXX and YYY to have the spreadsheet compute this for me?

役に立ちましたか?

解決

Assuming that your example begins in cell A1, put this in cell B6 to replace XXX:

=ArrayFormula(sum(if(B2:B5=$A2:$A5,1,0)))
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top