COUNTIFS and Dates

robbarba

Board Regular
Joined
Apr 17, 2016
Messages
79
Office Version
  1. 365
Platform
  1. Windows
Here is the problem: I have a required complete date of 5/31/2023 (LINE 15) but I was not able to complete that until 6/6/2023 I would like a count of how many projects missed the deadline.

2023 Onboards.xlsx
ABCD
1SubmitComplete ByAct. Complete DateDAYS OPEN
25/31/236/5/238
35/31/236/5/238
45/31/235/30/238
55/31/235/31/238
65/31/236/5/238
75/31/236/5/236/5/23
85/31/236/5/238
95/31/236/5/238
105/31/235/30/236/6/23
115/31/236/5/238
125/31/236/5/238
135/31/236/5/238
146/1/236/5/237
156/1/235/31/236/6/23
166/1/236/5/237
176/1/236/5/237
186/1/236/1/237
196/1/236/5/237
206/2/235/22/236
216/2/236/5/236
226/2/236/2/236
236/2/236/5/236
246/2/236/5/236/6/23
256/5/236/12/233
266/5/236/1/233
276/5/236/1/233
286/6/236/5/232
296/6/236/6/232
Sheet11
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B29Cellcontains a blank value textNO


I have tried using the following
=COUNTIFS(Projects!$A:$A,ProjectStart!$n:$n,">="&ProjectComplete!$M:$M,ProjectComplete!$M:$M,">="&$C$1,ProjectComplete!$M:$M,"<="&$E$1)

where column A is the name of the project
where column N is the project start date
where column M is the project complete date
where C1 is the start of report date
where E1 is the start of the report date
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
On the same sheet:
Book1
ABCDEF
1SubmitComplete ByAct. Complete DateDAYS OPEN
25/31/236/5/238Missed:3
35/31/236/5/238
45/31/235/30/238
55/31/235/31/238
65/31/236/5/238
75/31/236/5/236/5/23
85/31/236/5/238
95/31/236/5/238
105/31/235/30/236/6/23
115/31/236/5/238
125/31/236/5/238
135/31/236/5/238
146/1/236/5/237
156/1/235/31/236/6/23
166/1/236/5/237
176/1/236/5/237
186/1/236/1/237
196/1/236/5/237
206/2/235/22/236
216/2/236/5/236
226/2/236/2/236
236/2/236/5/236
246/2/236/5/236/6/23
256/5/236/12/233
266/5/236/1/233
276/5/236/1/233
286/6/236/5/232
296/6/236/6/232
Sheet1
Cell Formulas
RangeFormula
F2F2=SUMPRODUCT((C2:C29<>"")*(C2:C29>B2:B29))
 
Upvote 0
great this give the formula for the entire year, I want to run it with a date range, and I added
=SUMPRODUCT((!c2:c29<>"")*(c2:c29>b2:b29)*$c:$c,">="&$g$1,$c:$c,"<="&$h$1)
and it didn't work suggestions ?
 
Upvote 0
I can't see what you've got in G1 & H1, but here's a suggestion....
Book1
ABCDEFGH
1SubmitComplete ByAct. Complete DateDAYS OPEN5/1/236/30/23
25/31/236/5/238Missed:3
35/31/236/5/238
45/31/235/30/238
55/31/235/31/238
65/31/236/5/238
75/31/236/5/236/5/23
85/31/236/5/238
95/31/236/5/238
105/31/235/30/236/6/23
115/31/236/5/238
125/31/236/5/238
135/31/236/5/238
146/1/236/5/237
156/1/235/31/236/6/23
166/1/236/5/237
176/1/236/5/237
186/1/236/1/237
196/1/236/5/237
206/2/235/22/236
216/2/236/5/236
226/2/236/2/236
236/2/236/5/236
246/2/236/5/236/6/23
256/5/236/12/233
266/5/236/1/233
276/5/236/1/233
286/6/236/5/232
296/6/236/6/232
306/16/236/16/23
316/26/236/26/23
327/6/237/6/237/7/23
337/16/237/16/23
347/26/237/26/23
358/5/238/5/23
368/15/238/15/23
378/25/238/25/23
Sheet2
Cell Formulas
RangeFormula
F2F2=SUMPRODUCT((C2:C37<>"")*(C2:C37>B2:B37)*(C2:C37>=G1)*(C2:C37<=H1))
A30:B37A30=A29+10
 
Upvote 0
Solution
That is exactly right! The ask was for project task of expected end date and the actual end date How many were missed during the time frame asked for! Works beautifully, much appreciated the work!
I was so wrapped around the date, I didn't think of reversing it!
 
Upvote 0
That is exactly right! The ask was for project task of expected end date and the actual end date How many were missed during the time frame asked for! Works beautifully, much appreciated the work!
I was so wrapped around the date, I didn't think of reversing it!
Happy to help, and thanks for the feedback 👍 😀
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,983
Members
449,092
Latest member
Mr Hughes

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