Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default CountIf to determine Date - 3 yrs

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,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 396
Default CountIf to determine Date - 3 yrs

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default CountIf to determine Date - 3 yrs

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,

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default CountIf to determine Date - 3 yrs

Hi Brent

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

Best rgds
Chris Lav

"Brent E" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a formula to determine if date falls within a date range then Corca Excel Worksheet Functions 2 September 19th 08 09:36 AM
How to programatically determine the start date and end date of a graph [email protected] Charts and Charting in Excel 1 November 7th 07 09:56 PM
How to determine the date? Eric Excel Discussion (Misc queries) 1 August 29th 07 07:19 AM
How to determine the date? Eric Excel Discussion (Misc queries) 2 May 16th 07 11:49 AM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


All times are GMT +1. The time now is 06:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"