PC Review


Reply
Thread Tools Rate Thread

CountIf to determine Date - 3 yrs

 
 
Brent E
Guest
Posts: n/a
 
      20th Nov 2008
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,
 
Reply With Quote
 
 
 
 
Wigi
Guest
Posts: n/a
 
      20th Nov 2008
=CountIf(DataRangeB:B,"<=" & DATE(YEAR(TODAY())-3;MONTH(TODAY());DAY(TODAY())))


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Brent E" wrote:

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

 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      20th Nov 2008
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

"Brent E" wrote:

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

 
Reply With Quote
 
Chris Lavender
Guest
Posts: n/a
 
      21st Nov 2008
Hi Brent

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

Best rgds
Chris Lav

"Brent E" <(E-Mail Removed)> wrote in message
newsEA2070F-A52D-4641-AD5A-(E-Mail Removed)...
> 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,


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
formual to determine if date falls on weekend, adjust date to Mond Bradley Microsoft Excel Misc 4 21st Nov 2008 06:19 PM
Using formulas to determine date in one cell based on date in anot =?Utf-8?B?R2FyeQ==?= Microsoft Excel Worksheet Functions 2 22nd Nov 2004 08:11 AM
Formula to determine date of the Monday preceding a date Mike Microsoft Excel Worksheet Functions 6 31st Aug 2004 01:47 PM
COUNTIF? Use one column as condition to determine average of another pacman2k4 Microsoft Excel Discussion 2 9th May 2004 09:37 PM
Date Function: How to determine number of Saturdays in a date range Dan Picciotto Microsoft Excel Worksheet Functions 0 17th Sep 2003 12:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:00 PM.