ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count Dates (https://www.excelbanter.com/excel-discussion-misc-queries/206604-count-dates.html)

Matthew Tyrus

Count Dates
 
I have a list of dates in the following format MM/DD/YYYY.

1/11/2008
1/12/2008
1/30/2008
1/10/2008
1/10/2008
1/10/2008
1/12/2008
1/6/2008

I want to know how many times a date falls in-between a certain week. For
instance, countif(range,"=1/1/2008","<=1/6/2008"). It should be 1.

Any help?

John C[_2_]

Count Dates
 
=SUMPRODUCT(A2:A100=startdate)-SUMPRODUCT(A2:A100enddate)
--
John C


"Matthew Tyrus" wrote:

I have a list of dates in the following format MM/DD/YYYY.

1/11/2008
1/12/2008
1/30/2008
1/10/2008
1/10/2008
1/10/2008
1/12/2008
1/6/2008

I want to know how many times a date falls in-between a certain week. For
instance, countif(range,"=1/1/2008","<=1/6/2008"). It should be 1.

Any help?


T. Valko

Count Dates
 
Try this:

Enter you date boundaries in cells:

C1 = 1/1/2008
D1 = 1/6/2008

=COUNTIF(A1:A8,"="&C1)-COUNTIF(A1:A8,""&D1)

--
Biff
Microsoft Excel MVP


"Matthew Tyrus" wrote in message
...
I have a list of dates in the following format MM/DD/YYYY.

1/11/2008
1/12/2008
1/30/2008
1/10/2008
1/10/2008
1/10/2008
1/12/2008
1/6/2008

I want to know how many times a date falls in-between a certain week. For
instance, countif(range,"=1/1/2008","<=1/6/2008"). It should be 1.

Any help?





All times are GMT +1. The time now is 09:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com