Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Number counts within Date Range

I have about 45 different dates ranging from March through October (this
year) in one column. I want to bounce off today's date (NOW()) to count how
many of these items are <30 days old, 31-60 days old, 61-90 days old and
91+days old.
--
SteveStats
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Number counts within Date Range

You have a few options...
Explore these:

30 or less:
=COUNTIF(A1:A300,"="&TODAY()-30)


31 thru 60:
=INDEX(FREQUENCY(A1:A300,TODAY()-{61,31}),2)
or
=COUNTIF(A1:A300,"="&TODAY()-60)-COUNTIF(A1:A300,"="&TODAY()-30)
or
=SUM(COUNTIF(A1:A300,"="&TODAY()-{60,30})*{1,-1})


61 thru 90:
=INDEX(FREQUENCY(A1:A300,TODAY()-{91,61}),2)
or
=COUNTIF(A1:A300,"="&TODAY()-90)-COUNTIF(A1:A300,"="&TODAY()-60)
or
=SUM(COUNTIF(A1:A300,"="&TODAY()-{90,60})*{1,-1})


Over 90:
=COUNTIF(A1:A300,"<"&TODAY()-90)

Adjust range references to suit your situation.

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)



"SteveStats" wrote in message ...
I have about 45 different dates ranging from March through October (this
year) in one column. I want to bounce off today's date (NOW()) to count how
many of these items are <30 days old, 31-60 days old, 61-90 days old and
91+days old.
--
SteveStats



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Number counts within Date Range

Assuming source dates (real dates) are within A2:A10 with no blank cells,
and tightened limits with no gaps

<=30 days
=SUMPRODUCT(--(TODAY()-A2:A10<=30))

31-60 days
=SUMPRODUCT((TODAY()-A2:A1030)*(TODAY()-A2:A10<=60))

61-90 days
=SUMPRODUCT((TODAY()-A2:A1060)*(TODAY()-A2:A10<=90))

90 days

=SUMPRODUCT(--(TODAY()-A2:A1090))

Adapt the dates range A2:A10 to suit your actual range
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"SteveStats" wrote:
I have about 45 different dates ranging from March through October (this
year) in one column. I want to bounce off today's date (NOW()) to count how
many of these items are <30 days old, 31-60 days old, 61-90 days old and
91+days old.
--
SteveStats

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
Counting number of observations within a date range? Nic Excel Worksheet Functions 7 April 20th 07 09:20 AM
A macro that counts the number of times a file is opened [email protected] Excel Discussion (Misc queries) 2 December 20th 06 01:53 PM
a function that counts the number of cells with information zuri125 Excel Worksheet Functions 1 June 7th 06 07:37 AM
Excel formula that counts events after a certain date? micro1330 Excel Discussion (Misc queries) 5 August 25th 05 12:23 AM
Number of Days in a Date Range tesouthworthjr Excel Discussion (Misc queries) 6 July 14th 05 09:45 PM


All times are GMT +1. The time now is 10:43 AM.

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"