Count Formula if entry falls between two dates

ewalker

New Member
Joined
Oct 22, 2018
Messages
4
Hello all, hope someone out there can help me!!

I have a large list of contracts as abbreviated below

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Contract Title[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]Contract 1[/TD]
[TD]23/10/18[/TD]
[TD]31/12/18[/TD]
[/TR]
[TR]
[TD]Contract 2[/TD]
[TD]01/11/18[/TD]
[TD]30/11/18[/TD]
[/TR]
[TR]
[TD]Contract 3[/TD]
[TD]15/10/18[/TD]
[TD]14/12/18[/TD]
[/TR]
[TR]
[TD]Contract 4[/TD]
[TD]22/10/18[/TD]
[TD]28/12/18[/TD]
[/TR]
[TR]
[TD]Contract 5[/TD]
[TD]01/11/18[/TD]
[TD]03/01/19[/TD]
[/TR]
[TR]
[TD]Contract 6[/TD]
[TD]15/11/18[/TD]
[TD]14/12/18[/TD]
[/TR]
[TR]
[TD]Contract 7[/TD]
[TD]08/11/18[/TD]
[TD]21/12/18[/TD]
[/TR]
</tbody>[/TABLE]

I am looking for a formula that will count / amalgamate the number of contracts should they be live within the ranges stated below to produce the results stated. Any assistance would be greatly appreciated

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Date Range Start[/TD]
[TD]Date Range End[/TD]
[TD]No of Live Contracts (Results)[/TD]
[/TR]
[TR]
[TD]15/10/18[/TD]
[TD]19/10/18[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]22/10/18[/TD]
[TD]26/10/18[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]29/10/18[/TD]
[TD]02/11/18[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]05/11/18[/TD]
[TD]09/11/18[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]12/11/18[/TD]
[TD]16/11/18[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]19/11/18[/TD]
[TD]23/11/18[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]26/11/18[/TD]
[TD]30/11/18[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]03/12/18[/TD]
[TD]07/12/18[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]10/12/18[/TD]
[TD]14/12/18[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]17/12/18[/TD]
[TD]21/12/18[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]24/12/18[/TD]
[TD]28/12/18[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]31/12/18[/TD]
[TD]04/01/19[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Try this, copied down.

Excel Workbook
ABC
1Contract TitleStart DateEnd Date
2Contract 123/10/201831/12/2018
3Contract 21/11/201830/11/2018
4Contract 315/10/201814/12/2018
5Contract 422/10/201828/12/2018
6Contract 51/11/20183/01/2019
7Contract 615/11/201814/12/2018
8Contract 78/11/201821/12/2018
9
10
11Date Range StartDate Range EndNo of Live Contracts (Results)
1215/10/201819/10/20181
1322/10/201826/10/20183
1429/10/20182/11/20185
155/11/20189/11/20186
1612/11/201816/11/20187
1719/11/201823/11/20187
1826/11/201830/11/20187
193/12/20187/12/20186
2010/12/201814/12/20186
2117/12/201821/12/20184
2224/12/201828/12/20183
2331/12/20184/01/20192
COUNT Contracts
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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