Day(s)

:

Hour(s)

:

Minute(s)

:

Second(s)

COUNTIFS function

This function will conditionally count items in a range based on given criteria.

Syntax

COUNTIFS(Range 1, Criteria 1, Range 2, Criteria 2,…)

  • Range 1 (required) – This is the range to which the first criteria is applied.
  • Criteria 1 (required) – This is the criteria Range 1 has to satisfy to be included in the count.
  • Range 2, Range 3,… (optional) – These are more criteria ranges that can be used.
  • Criteria 2, Criteria 3,… (optional) – These are more criteria to which the associated range has to satisfy to be included in the count.

Example

In this example we count up the number of people in each job and company. Note that something is only counted when both criteria are met at the same time and not when one criteria is met and the other is not.

=COUNTIFS($A$2:$A$7, E2,$B$2:$B$7,F2)

COUNTIFS

About the Author

John MacDougall

John MacDougall

John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.

Subscribe

Subscribe for awesome Microsoft Excel videos 😃

John MacDougall

I’m John, and my goal is to help you Excel!

You’ll find a ton of awesome tips, tricks, tutorials, and templates here to help you save time and effort in your work.

Related Posts

Comments

0 Comments

Get the Latest Microsoft Excel Tips

Follow Us

Follow us to stay up to date with the latest in Microsoft Excel!

Subscribe for awesome Microsoft Excel videos 😃