How do I conditionally sum a cell based on the value of another cell?

Viewed 24
1 Answers

try:

=INDEX(IFERROR(1/(1/SUM(IF(B17:W17="yes", B$7:W$7, )))))

update

or delete everything in Y17:Y and use this on Y17:

=INDEX(IFERROR(1/(1/MMULT(IF(B17:W="yes", B7:W7, 0), SEQUENCE(COLUMNS(B:W), 1, 1, )))))

enter image description here

Related