Zend certified PHP/Magento developer

excel sum range with two index matched values with multiple occurence

excel table

Hi I’m Trying to get a sum of 59 for 2 criteria and multiple occurence.
See the picture. the problem with mycurrent formula is that it only sums the first column mp1