PC Review


Reply
Thread Tools Rate Thread

How to count # of dates that fall between a start and end date.

 
 
ascottbag-hcm
Guest
Posts: n/a
 
      26th Mar 2009
Can someone help with a formula that will give a count in one worksheet of
hire dates that exist in one column of another worksheet. I have a second
worksheet (example below) that contains two criteria columns, one with month
start date, the other with month end date. I'm trying to get a count of all
dates from the first worksheet that would be >=the below start date AND <=
the below end date.

START OF MONTH END OF MONTH COUNT
4/1/2009 4/30/2009

 
Reply With Quote
 
 
 
 
OssieMac
Guest
Posts: n/a
 
      26th Mar 2009
You just subtract one date from the other and add 1. The resulting formula
cell must be formattd as a number; not a date.

Examples:-
If formula is on the same worksheet as source data
=B2-A2 +1

If formula is on a different worksheet to the source data
=Sheet1!B2-Sheet1!A2+1

--
Regards,

OssieMac


"ascottbag-hcm" wrote:

> Can someone help with a formula that will give a count in one worksheet of
> hire dates that exist in one column of another worksheet. I have a second
> worksheet (example below) that contains two criteria columns, one with month
> start date, the other with month end date. I'm trying to get a count of all
> dates from the first worksheet that would be >=the below start date AND <=
> the below end date.
>
> START OF MONTH END OF MONTH COUNT
> 4/1/2009 4/30/2009
>

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      26th Mar 2009
The below formula should work.

Sheet2 Column A contains all dates
Sheet1 A2 = StartDate
Sheet1 B2 = End Date

=SUMPRODUCT((Sheet2!A:A>=A2)*(Sheet2!A:A<=B2))

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


 
Reply With Quote
 
OssieMac
Guest
Posts: n/a
 
      26th Mar 2009
Ignore my previous answer. After seeing Jacob's answer I realize that I
initially totally miss understood the question.

--
Regards,

OssieMac


"OssieMac" wrote:

> You just subtract one date from the other and add 1. The resulting formula
> cell must be formattd as a number; not a date.
>
> Examples:-
> If formula is on the same worksheet as source data
> =B2-A2 +1
>
> If formula is on a different worksheet to the source data
> =Sheet1!B2-Sheet1!A2+1
>
> --
> Regards,
>
> OssieMac
>
>
> "ascottbag-hcm" wrote:
>
> > Can someone help with a formula that will give a count in one worksheet of
> > hire dates that exist in one column of another worksheet. I have a second
> > worksheet (example below) that contains two criteria columns, one with month
> > start date, the other with month end date. I'm trying to get a count of all
> > dates from the first worksheet that would be >=the below start date AND <=
> > the below end date.
> >
> > START OF MONTH END OF MONTH COUNT
> > 4/1/2009 4/30/2009
> >

 
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
Lookup and count all cells that fall between 2 dates Jonno Microsoft Excel Worksheet Functions 3 14th Jan 2011 01:26 AM
I want to count days between two dates including start date =?Utf-8?B?SW5maW5pdGViaXNjdWl0?= Microsoft Excel Worksheet Functions 2 20th Feb 2007 12:27 PM
how would I count dates (not # of days) in cells that fall betwee. =?Utf-8?B?c2FpbGluZ3Njb3R0cw==?= Microsoft Excel Worksheet Functions 3 16th Aug 2005 04:29 AM
Count number of cells that fall within a range of dates mmay321 Microsoft Excel Discussion 3 8th Aug 2005 10:29 PM
How do I get a number count of dates that fall between specific dates JohnB Microsoft Excel Discussion 3 3rd Jun 2004 03:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 AM.