The COUNTIFS function syntax has the following arguments:

Important: Each additional range must have the same number of rows and columns as the criteria_range1 argument. The ranges do not have to be adjacent to each other.

Remarks

Example 1

Copy the example data in the following tables, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Salesperson
Exceeded Q1 quota
Exceeded Q2 quota
Exceeded Q3 quota
Davidoski
Yes
No
No
Burke
Yes
Yes
No
Sundaram
Yes
Yes
Yes
Levitan
No
Yes
Yes
Formula
Description
Result
=COUNTIFS(B2:D2,'=Yes')
Counts how many times Davidoski exceeded a sales quota for periods Q1, Q2, and Q3 (only in Q1).
1
=COUNTIFS(B2:B5,'=Yes',C2:C5,'=Yes')
Counts how many salespeople exceeded both their Q1 and Q2 quotas (Burke and Sundaram).
2
=COUNTIFS(B5:D5,'=Yes',B3:D3,'=Yes')
Counts how many times Levitan and Burke exceeded the same quota for periods Q1, Q2, and Q3 (only in Q2).
1

Example 2

Data
1
5/1/2011
2
5/2/2011
3
5/3/2011
4
5/4/2011
5
5/5/2011
Visual basic 2012 free download. Visual basic portable 6.0 free download. Visual Basic 6.0 Runtime Plus This is the complete package of runtime files and redistributable libraries for running or distribut. Apr 28, 2019  Visual Basic is a piece of Visual Studio bundle. In the event that you need to utilize just visual essential then you need to download visual basic 6.0 free aggregate bundle of visual studio. The measure of this aggregate bundle (Visual Studio 6.0) is more than 600 MB. Visual Basic 6.0 Portable Download. The members of Visual Studio 6.0 family.
6
5/6/2011
Formula
Description
Result
=COUNTIFS(A2:A7,'<6',A2:A7,'>1')
Counts how many numbers between 1 and 6 (not including 1 and 6) are contained in cells A2 through A7.
4
=COUNTIFS(A2:A7, '<5',B2:B7,'<5/3/2011')
Counts how many rows have numbers that are less than 5 in cells A2 through A7, and also have dates that are are earlier than 5/3/2011 in cells B2 through B7.
2
=COUNTIFS(A2:A7, '<' & A6,B2:B7,'<' & B4)
Same description as the previous example, but using cell references instead of constants in the criteria.
2

Need more help?

Which of the following is the correct argument(s)/syntax for the countifs function

You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.

See Also