
With COUNTIF, Excel can search a range of data and count the number of times it finds a specific datapoint or condition. The function's arguments are constructed like so:

In the function, the "range" designates the cell range Excel will be searching. The "criteria" designates the specific datapoint for which Excel is to search and count occurrences.

Since Column C contains the names of the sold items, the range "C5:C15" will constitute the "range" argument in the COUNTIF function. We'll use Cell F5 as our "criteria" argument (see picture below). In it, we've typed the name of the product whose sales we wish to count.
In this case, we'll put the COUNTIF function in Cell F6. It appears as:
And a finished spreadsheet (albeit aesthetically blah) might look like this:

As we see, Excel has correctly determined that we sold three Zongers in this invoice batch.
Users who wish to download the above spreadsheet, with its sample usage of the COUNTIF function, can grab it here.