Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Count cells with a date falling within a 30 day period.

I want to count the number of cells that have a date entered, in a period of
30 days, in a column with over a thousand cells. Some of the cells are blank
while others have random dates entered spanning a period of many years.

(I.e. How many cells, in the above mentioned column, have a date that falls
in the period between 21-Apr-2009 until 20-May-2009 ?)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Count cells with a date falling within a 30 day period.

Hi,

Try this. B12 and B13 hold the 21/4/2009 and 20 May 2009 respectivelyu

=SUMPRODUCT((D5:D9=B12)*(D5:D9<=B13))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Rob" wrote in message
...
I want to count the number of cells that have a date entered, in a period
of
30 days, in a column with over a thousand cells. Some of the cells are
blank
while others have random dates entered spanning a period of many years.

(I.e. How many cells, in the above mentioned column, have a date that
falls
in the period between 21-Apr-2009 until 20-May-2009 ?)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Count cells with a date falling within a 30 day period.

Dear Rob

Another way using COUNTIF(). With dates in Column C in date format..

=COUNTIF(C:C,""&DATE(2009,4,21))-COUNTIF(C:C,""&DATE(2009,5,20))

If this post helps click Yes
---------------
Jacob Skaria


"Rob" wrote:

I want to count the number of cells that have a date entered, in a period of
30 days, in a column with over a thousand cells. Some of the cells are blank
while others have random dates entered spanning a period of many years.

(I.e. How many cells, in the above mentioned column, have a date that falls
in the period between 21-Apr-2009 until 20-May-2009 ?)

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
count number of dates falling in the next seven days Louisa Excel Worksheet Functions 5 April 29th 09 11:06 AM
Number of dates falling in a date range Cralis Excel Worksheet Functions 7 December 15th 08 03:28 AM
How do I count the number of events in a 90 day period? ericball Excel Worksheet Functions 2 February 12th 07 02:47 AM
Sum column based on value in each row, if two cells equal, or if date is within time period [email protected] Excel Worksheet Functions 8 September 25th 06 02:40 PM
Count dates falling in a certain range junoon Excel Worksheet Functions 6 April 1st 06 02:22 AM


All times are GMT +1. The time now is 08:00 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"