CountIf to determine Date - 3 yrs

  • Thread starter Thread starter Brent E
  • Start date Start date
B

Brent E

Good day,

I have a series of data including a date col. What is the criteria statement
I should use in the CountIf formula to determine the no. of records where the
date is 3 years or more prior to the current date in cell B2?

Pseudo criteria something like:
CountIf(DataRangeB:B, <= B2 - 3 yrs)

Thanks in advance,
 
Hi,

Here is a relatively short formula:

=COUNTIF(A1:A11,"<="&EDATE(D1,-36))

-36 means 36 months into the past. This assumes your dates are in A1:A11.

To use it choose Tools, Add-ins, and make sure the Analysis ToolPak has a
check beside it.

If this help, please click the Yes button.

Cheers,
Shane Devenshire
 
Hi Brent

=COUNTIF(DataRangeB:B,"<="&TODAY()-1095)
or
=COUNTIF(DataRangeB:B,"<="&B2-1095)

Best rgds
Chris Lav
 
Back
Top