Count using entries within a range

Morfi

Board Regular
Joined
Jun 16, 2009
Messages
97
I want to use a formula to count the number of entries within a range of dates. I have a column in my worksheet called Date of Receipt (Column F). I want the formula to count the number of entries between 2 dates e.g. 01/04/2011-30/04/2011. How can I do this?

Also, I have another column where I record if a response has been sent out by a deadline (Column S). I would like to count how many responses were sent out on time within the same range of dates i.e. 01/04/2011-30/04/2011. How can I do this?

Column F = Date of receipt (entries in this column will range from 01/04/2011 until 30/06/2011)
Column S = Deadline met (entries in this column will either be Y or N)

My worksheet is called Apr-Jun and I want to use these formulas in a separate worksheet within the same workbook.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Sample of Counting records between dates... (only) - your 1st Q
Excel Workbook
ABCD
1My DatesStart Date>>>6/1/2011
25/25/2011End Date ===6/30/2011
35/31/2011
46/1/20117<< Record Count within Date Range
56/7/2011
66/13/2011
76/15/2011
86/18/2011
96/19/2011
106/25/2011
117/1/2011
127/7/2011
137/13/2011
147/19/2011
157/25/2011
167/31/2011
178/6/2011
188/10/2011
198/12/2011
208/18/2011
218/24/2011
228/30/2011
Sheet1
Excel 2007
Cell Formulas
RangeFormula
D2=EOMONTH(D1,0)
C4=COUNTIF($A:$A,">="&D1)-(COUNTIF($A:$A,">="&D2+1))
 
Upvote 0
Try

=SUMPRODUCT((($A$4:$A$27>=$D$1)*($A$4:$A$27<=$D$2)),--(B4:B27="Y"))

counts the number of Y's in col B for a date range in col A

delimited by D1 start date
and d2 end date
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,723
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top