SUMIF with multiple criteria

Anne Troy

MrExcel MVP
Joined
Feb 18, 2002
Messages
2,632
Office Version
  1. 365
Platform
  1. Windows
I never seem to get this right...or did they change the formula?

I want to change the following formula to sum ONLY IF there is an "A" in column A.

="MST Ob: $"&SUMIF(B4:B155,"MST",H4:H155)

I hope that someday this comes as second nature like many other formulas, but to me vlookup was much easier. I don't understand the sumproducts and the hyphens...
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
will the same formula in post 16 work for a COUNTIFS? Instead of suming column D, it would count the number of times that same criteria in post 16 was met! 3 being the result/answer. Could you tell me the formula to make that work.
The formula in post 16: ((A2:A10<>F4)*(B2:B10&C2:C10<>F4&G4)*(D2:D10))
 
Upvote 0
will the same formula in post 16 work for a COUNTIFS? Instead of suming column D, it would count the number of times that same criteria in post 16 was met! 3 being the result/answer. Could you tell me the formula to make that work.
The formula in post 16: ((A2:A10<>F4)*(B2:B10&C2:C10<>F4&G4)*(D2:D10))

Don't you mean that the answer would be 4?

=SUMPRODUCT((A2:A10<>F4)*(B2:B10&C2:C10<>F4&G4))
 
Upvote 0

Forum statistics

Threads
1,215,589
Messages
6,125,695
Members
449,250
Latest member
azur3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top