Another one.....

In F3

=SUMPRODUCT(--($A$2:$A$17=$E3),--($B$2:$B$17=F$2),$C$2:$C$17)
and then drag across and down.