Thanks for the feedback mohamedJamsheer and Martin!
This forum is a good place to hang out. 
However, I just realized that I didn't mean some of the nice things I said about Martin's COUNTIF formula (sort of anyway).
I'm talking about the part where I said that it is easy to understand. I don't think it is easy to understand for a beginner.
It may not be obvious to you, royalB and mohamedJamsheer, why the IF part in Martin's formula works since the COUNTIF part does not produce a TRUE or FALSE which is the normal input to an IF formula.
Common knowledge says that 0 corresponds to FALSE and 1 corresponds to TRUE. However, Excel interprets 0 as FALSE and ANY number larger or smaller than 0 as TRUE.
One would think that Martin's formula should really look like this:
but because of what I mentioned above the >0 part can simply be skipped.
There! I'm done ranting in this thread.
Bookmarks