Combine Sumif and Subtotal
Try this:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(E5:E10,ROW(E5:E10)-ROW(E5),0,1)),--(E5:E10=E8),F5:F10)
--
Biff
Microsoft Excel MVP
"Flu" wrote in message
...
Try to combine a sumif in a subtotal row.
But got #VALUE! instead.
Can someone advise what's wrong with this formular?
=SUMPRODUCT((ISNUMBER(MATCH($E$5:$E$10,$E$8,0))),( SUBTOTAL(9,F$5:F$10)))
or can I use a simpler one
=sumif($E$5:$E$10,$E$8,(subtotal(9,F5:F10)))
|