Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Count the number of occurrences with a date within last X months

$
0
0

I want to see how many dates in a range are within the last 2 months. What I tried:

=SUMIF(D12:D21, ">="&EDATE(TODAY(),-2))

But that sums the cell values, where I just want to count the number of occurrences.

My data:

1/18/231/20/231/13/231/13/2312/16/2212/12/2211/4/2211/18/22

I would want the result of my formula to be: 4


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>