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...
 
If the suggestion does not work, try to post a scaled-down Excel-readable sample directly here in the forum. Attachments lists a few methods for posting sample exhibits which do not require retyping and the add-in https://app.box.com/s/soezox25h3w0q5s4rcyl is also a method for posting an exhibit (Note that an image or a link to a storage site like dropbox or onedrive etc. does not provide a permanent record.). Mind you a forum without a permanent record is not of much value.
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
https://app.box.com/s/1985dkaexru6yov6qphly5b9pi4dyz8o

Excel Workbook
ABCDEFGHI
1BooksMagazinesNotesTotal
2x20
3xAux.10Criteria 1:Criteria 2:Total
425XAux.25SUMIFS(D2:D10,A2:A10,"="&F4,B2:B10,"="&F4,C2:C10,""&G4)
5x32138SUMIFS(d2:d10,b2:b10,"="&f4,c2:c10,""&g4)+SUMIFS(d2:d10,a2:a10,""&f4)
6x2525SUMIFS(D2:D10,A2:A10,"X",B2:B10,"=X",C2:C10,"*Aux*")
7x3625SUMIFS(D2:D10,B2:B10,"="&F4,C2:C10,""&G4)
8x65113
932103 is the correct total that I'm looking for.
1021So count all of the totals for books that dont have an X, so long as the Magazines do not have an X with a Aux. in Notes
AND and OR
 
Upvote 0
I don't understand. I've done everything that you've asked me to. Are you able to assist me?
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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