I am facing a problem with excel. I know we can make a SUMIF using multiple values as criteria, but how can we do this when using SUMIFS ?
What I mean is ( as you can see at the exampled picture ):
The answer should be 2
Try (using your {a,b,m,n} filter as an example):
=SUM(ISNUMBER(MATCH(A2:A5,E2:E5,0))*ISNUMBER(MATCH(B2:B5,F2:F5,0)))
Or, in case the amount in the val column might not always be one (1):
=SUM((ISNUMBER(MATCH(A2:A5,E2:E5,0))*ISNUMBER(MATCH(B2:B5,F2:F5,0)))*C2:C5)