CountIf to determine Date - 3 yrs

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,
 
S

Shane Devenshire

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
 
C

Chris Lavender

Hi Brent

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

Best rgds
Chris Lav
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top