How many of the items in this list are red?
The COUNTIF function can be used to count only certain specific entries in a list. It requires two pieces of information.
The area containing the items to be counted and some way to tell which entries are required.
In the example below, which was created in the UK in the dead of winter, the colours of the items to be counted are contained within the range C3 to C12
If only the red items are to be counted, these are identified using the word RED. To indicate that this is literally the word RED, the text must be enclosed within speech marks.
Please note that a text match of this type is not case sensitive.
To find out how many hats are in the list, a similar procedure is followed. The only difference is that the item type is listed in the range B3 to B12. Once again, the text criteria is enclosed in speech marks and it does not matter whether upper or lower case text is used.
And if you want to know how many red hats are in the list, click here
Try it yourself using the examples below…