Excel, Calculate Sum of one column where the corresponding row in another column equals a value

StackOverflow https://stackoverflow.com/questions/18507461

  •  26-06-2022
  •  | 
  •  

Pregunta

So I have the following formula which works perfectly to calculate the SUM of an entire column of another worksheet which I reference indirectly.

=SUM(INDIRECT(A4&"!C:C"))

What I need now is to calculate the SUM of C (as above) but only when the relevant row in Column D is equal to Yes.

Can this be done?

Thanks,

¿Fue útil?

Solución

Try this

=SUMIF(INDIRECT(A4&"!D:D"),"Yes",INDIRECT(A4&"!C:C"))
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top