Reputation: 3
Seems like a simple thing to do but cannot for the life of me figure out the right formula:
I want I5 to display 0 when I1-4 are NO and I want I5 to display .5 ONLY when all rows are YES.
Upvotes: 0
Views: 73
Reputation: 152585
If NO
and YES
are the only options use this:
=IF(COUNTIF(I1:I4,"NO"),0,.5)
If the values can be other than NO
and YES
then use this:
=IF(COUNTIF(I1:I4,"YES")=4,.5,0)
Upvotes: 1