David Sýkora
David Sýkora

Reputation: 584

ARRAYFORMULA with SUM, IF and AND

I have a table like this:

☑   667     No
☐   667     No
☑   667     Yes

and want to sum the numbers when the checkbox is checked and the state is YES.

I tried something like this,

=ARRAYFORMULA(SUM(IF(AND(A2:A<>"☐",C1:C="Yes"),B1:B)))

but it is not working.

Anyone can help me?

Upvotes: 0

Views: 245

Answers (1)

pnuts
pnuts

Reputation: 59460

Please try:

=sumifs(B:B,A:A,"☑",C:C,"YES")

Upvotes: 2

Related Questions