ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I count cells in a column of dates between date ranges? (https://www.excelbanter.com/excel-worksheet-functions/21950-how-do-i-count-cells-column-dates-between-date-ranges.html)

Andrew82

How do I count cells in a column of dates between date ranges?
 
I have a column of submission dates in the format 01/01/05, and I need to
count the occurances of dates between certain values... for example, count
how many submissions there were between 02/01/05 and 09/01/05

Ragdyer

Put your start date in C1, and your end date in D1, and try this:

=SUMPRODUCT((A1:A100=C1)*(A1:A100<=D1))
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Andrew82" wrote in message
...
I have a column of submission dates in the format 01/01/05, and I need to
count the occurances of dates between certain values... for example, count
how many submissions there were between 02/01/05 and 09/01/05



Aladin Akyurek

Andrew82 wrote:
I have a column of submission dates in the format 01/01/05, and I need to
count the occurances of dates between certain values... for example, count
how many submissions there were between 02/01/05 and 09/01/05


=COUNTIF(DateRange,"="&X2)-COUNTIF(DateRange,""&Y2)

where X2 houses a date like 02/01/05 and Y2 a date like 09/01/05 with X2
<= Y2.


All times are GMT +1. The time now is 12:15 AM.

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