Welcome to the forum.
We generally prefer that you post the spreadsheet rather than a picture of it. That way it's easy to directly add & test suggestions - and a tested solution inside your spreadsheet can be posted back for you.
That being said, I think this will do the trick for you:
copy into cell F13 & pull down to fill F13:F47
EDIT:

Originally Posted by
hoyasaxa215
What's wrong with the "=IF(AND" function shown in the screen shot?
It's close to being correct for a certain type of array formula, but it's doing tests on different-sized ranges (which would throw an error if entered) and it's not set up to return anything but the results for the very first row of cells.
So RudiS' suggestions - changing the range assessment and nesting a SUM - would solve each of those issues in turn (although I wonder if it's possible to return SUM()>1, which might be an error...)?
Well, array formulas are resource-intensive (they eat lots of computing power), so I went with the faster COUNTIFS instead, basically as a matter of personal preference.
Bookmarks