Count Between Dates

luis.carrion

Board Regular
Joined
Mar 26, 2010
Messages
246
I need a formula to count the numbers of inventory completed during the month of October from Tab SCA FY17 Tab Column J9 (Date Format: 12/1/23) in The Dashboard Tab Column V31
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Asala42

Well-known Member
Joined
Feb 26, 2002
Messages
2,318
One common method is the COUNTIFS function (plural version of COUNTIF).

eg
Code:
=COUNTIFS($A$2:$A$200,">="&Z1,$A$2:$A$200,"<="&Z2)
Where Z1 and Z2 are your start/end dates, and A1:A200 is your list of complete dates.

That said, what date does your example 12/1/23 represent? That does not look like a format excel will automatically recognize as a date, so you may need to do some kind of conversion.
 

Matt Rogers

Well-known Member
Joined
Sep 23, 2011
Messages
1,030
Hi.

IF 12/1/23 = 'MM/D/YY' then perhaps this variant:

Formula F2: (Days between start and end)
=SUMPRODUCT((A2:A10>D2)*(A2:A10 < E2)*(B2:B10))


Formula G2: (Days including start and end)
=SUMPRODUCT((A2:A10>=D2)*(A2:A10<=E2)*(B2:B10))
Excel Workbook
ABCDEFG
1Day$*StartEndSum1Sum2
211/29/2310*12/1/2312/4/232202
311/30/2310*****
412/1/23100*****
512/2/231*****
612/3/231*****
712/4/23100*****
812/5/2310*****
912/6/2310*****
10*******
Sheet
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,129,804
Messages
5,638,450
Members
417,025
Latest member
MusterDuster

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
Top