Count records within a date range

brad_lucas

New Member
Joined
Nov 12, 2005
Messages
2
Hi all,

In column A I have a list of dates (dd/mm/yyyy). What I am trying to do is count the number of records within that column that match a date range criteria. For example: How many records are listed between 14/11/2005 and 18/11/2005 (in my case there's 12).

Can anyone offer some advice?

Regards
Brad
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
brad_lucas

Welcome to the Mr Excel board!

Assuming that your dates are real dates and not text, try this.

I have put the dates of interest in B2 and C2. Formula in D2 is:
=COUNTIF(A1:A20,"<"&C2)-COUNTIF(A1:A20,"<="&B2)

If this does not give the result you expect, it could be my interpretation of 'between' two dates. In this case a slight adjust ment of the 'less than' and 'less than or equal to' symbols might be required.
Mr Excel.xls
ABCD
110/11/2005Date 1Date 2Number
211/11/200514/11/200518/11/20055
312/11/2005
413/11/2005
514/11/2005
615/11/2005
715/11/2005
816/11/2005
916/11/2005
1017/11/2005
1118/11/2005
1219/11/2005
1320/11/2005
Count Dates
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,960
Members
449,057
Latest member
FreeCricketId

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