Actually u can use this formula

=SUM(INDEX(($A11=$A$2:$A$7)*(B$10=$B$1:$D$1)*($B$2:$D$7),0))

But yours is also works
Or ekse, think u can use Pivot Table Report... See related tutorials