Tente isto:
=SUMIFS(C2:C5, B2:B5, "YES", A2:A5, "MM")
Summary of function from Microsoft: Adds the cells in a range that meet multiple criteria.
C2:C5is the column that needs to be summed if the requirements are met.
B2:B5is the column with yourYESandNOvalues to check. IfYESthen first check passes
A2:A5is your other string value to check. IfMMthen second check passes.If both checks pass then sum the respective values from cell range (
C2:C5)
Nos intervalos de dados, não inclua o cabeçalho.
Isso dá o resultado que você estava procurando no seu exemplo.
Verifique se a coluna com os preços está formatada como moeda.
Fonte: função SUMIFS