By: Sourav Kundu

In reply to Russell.

Hello, RUSSEL.
Thank you for sharing your problem with us. We have provided 2 different ways to solve your problem.
For example, we have a dataset of Product, Size, and Price. We will find the total price of the Small Shirts.
Method-1:
For this, write the following formula in the F9 cell and press Enter.
=IFERROR(INDEX($D$5:$D$15, SMALL(IF(($G$4=$B$5:$B$15)*($G$5=$C$5:$C$15), ROW($D$5:$D$15)-ROW($D$5)+1), ROWS($1:1))), "")
And, you will get the first Price value.
Then Drag the F9 formula downwards to get other Price values that meet the criteria.

You can see that we have got two Price values that meet the multiple criteria.
Now, you can use the SUM function to get the total Price value.

Method 2:
Write the following formula in F9 and press Enter.
=SUM(IFERROR(FILTER(D5:D15, (G4=B5:B15)*(G5=C5:C15)), ""))
And, you will get the total Price value with multiple criteria.

The FILTER function used in this method is only available for Microsoft 365 and Excel 2021.
Solution to Your Problem:
You can use the formula below to solve your problem:
=SUM(IFERROR(FILTER($G$20:$G$52, ($B$20:$B$53=$B3)*($E$20:$E$52=$D3)*($F$20:$F$52=CH$1)*($A$20:$A$53=$A3)*($D$20:$D$52=$E3)), ""))
We could have given you the exact formula if we had your dataset. Let us know if your problem is solved.
Regards,
Sourav
ExcelDemy.