Locked lesson.
About this lesson
This lesson will show you COUNTIF and COUNTIFS that will allow you to quickly gather insights from your data based on the frequency of information.
Quick reference
Countif & Countifs
When to use
To count based on a certain criterion, you’ll have to use COUNTIF. If you have more than one criterion, you’ll have to use the COUNTIFS.
Syntax
=COUNTIF(range, criteria)
=COUNTIFS(range1, criteria1, range2, criteria2,…)
How it works
The range indicates the column in the data range that Excel will test for a criteria before it will do the calculation (the count or the sum).
The criteria argument needs the indication of what the range value should be.
If your range is text, the criterion is usually similar the text has to agree to.
If your range is a number, the criterion can include a number of logic functions. (=,<,>,etc)
To define criteria, you need to use quotation marks, except where you refer to cell references, like A5 – then use quotation marks to combine the logic test and the reference.
Example
=COUNTIF(A1:A15, “>=”&D15)
If D15=5, then the Countif will count all the values in Column A1:A15 that is greater than or equal to 5.
Note the quotation marks around the logic test and the ampersand (“&”) that connects the logic test and the cell reference.
Login to downloadLesson notes are only available for subscribers.