WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

CountIf to determine Date - 3 yrs

 
   Home -> Office -> General Discussions RSS
Next:  Collate data  
Author Message
Brent E

External


Since: May 24, 2006
Posts: 50



(Msg. 1) Posted: Thu Nov 20, 2008 2:19 pm
Post subject: CountIf to determine Date - 3 yrs
Archived from groups: microsoft>public>excel>misc (more info?)

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,
Back to top
Login to vote
Wigi

External


Since: Jul 07, 2007
Posts: 230



(Msg. 2) Posted: Thu Nov 20, 2008 2:32 pm
Post subject: RE: CountIf to determine Date - 3 yrs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

=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,
Back to top
Login to vote
Shane Devenshire

External


Since: Nov 11, 2008
Posts: 922



(Msg. 3) Posted: Thu Nov 20, 2008 3:16 pm
Post subject: RE: CountIf to determine Date - 3 yrs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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,
Back to top
Login to vote
Chris Lavender

External


Since: Jul 22, 2006
Posts: 9



(Msg. 4) Posted: Fri Nov 21, 2008 1:36 am
Post subject: Re: CountIf to determine Date - 3 yrs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Brent

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

Best rgds
Chris Lav

"Brent E" <BrentE RemoveThis @discussions.microsoft.com> wrote in message
news:DEA2070F-A52D-4641-AD5A-474ABF7365C5@microsoft.com...
> 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,
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> General Discussions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET