Counting Date Values by Specified Date Criteria

Follow by Email
Facebook
Facebook
Google+
http://www.exceltip.com/counting/counting-date-values-by-specified-date-criteria.html">
SHARE




In this article, you can learn about Countif & Countifs function with the help of 3 examples with dates’ criterion.

Example 1:- Counting number of dates which are greater than then-criteria date

Example 2:- Multiple condition: counting number of dates which are greater than then-criteria date with Status “Yes”

Example 3:- COUNTIF & COUNTIFS to get same result (counting number of dates which fall between two criterion dates)

 

Following are the key differences between COUNTIF & COUNTIFS function:-

 

img1

 

Example 1:- Counting number of dates which are greater than then-criteria date

 

img2

 

  • In cell E2, the formula will be
  • =COUNTIF(A2:A15,”>”&D2)

 

img3

 

Example 2: - Multiple condition: counting number of dates which are greater than then-criteria date with Status “Yes”

  • In cell E2 the formula will be
  • =COUNTIFS(A2:A15,”>”&D2,B2:B15,”Yes”)

 

img4

 

Example 3:- COUNTIF & COUNTIFS to get same result (counting number of dates which fall between two criterion dates)

 

img5

 

  • In cell D7, the formula will be
  • =COUNTIFS(A2:A15,”>”&D2,A2:A15,”<”&D3)

 

img6

 

The below formula will use only COUNTIF function to get the same result.

  • In cell E7, the formula will be
  • =COUNTIF(A2:A15,”>”&D2)-COUNTIF($A2:$A15,”>”&D3)

 

img7

 

Conclusion:- With the help of above examples, we can apply COUNTIF & COUNTIFS function depending on the outcome required to achieve the result.

 

image 48

 

If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at [email protected]

 
 

Please follow and like us:
39


Leave a Reply

Your email address will not be published. Required fields are marked *


five − 1 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>