Forum Discussion
SUM(IF that changes when value in column A changes
- Jun 07, 2024
=SUM(IF(($A$3:$A$15000=$E3)*($E$3:$E$15000=$A3)*($C$3:$C$15000=$C3),SUM(INDEX($AY:$AY,MATCH(A3,$A:$A,0)):INDEX($AY:$AY,ROW(A3)))/$AT3))
Does this formula return the intended result?
I've changed for example
$A:$A=$E3
to
$A$3:$A$15000=$E3
because
$A:$A
references rows 1 to 1048576 in column A which is bad for the calculation performance.
The formula must be entered as an arrayformula with ctrl+shift+enter if someone doesn't work with Office 365 or Excel for the web or Excel 2021.
=SUM(IF(($A$3:$A$15000=$E3)*($E$3:$E$15000=$A3)*($C$3:$C$15000=$C3),SUM(INDEX($AY:$AY,MATCH(A3,$A:$A,0)):INDEX($AY:$AY,ROW(A3)))/$AT3))
Does this formula return the intended result?
I've changed for example
$A:$A=$E3
to
$A$3:$A$15000=$E3
because
$A:$A
references rows 1 to 1048576 in column A which is bad for the calculation performance.
The formula must be entered as an arrayformula with ctrl+shift+enter if someone doesn't work with Office 365 or Excel for the web or Excel 2021.