Count how many "Open" work requests in a particular (historic) week

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
I am hoping this is really simple, and my brain is just not working!

In Column G is the date the request received
In Column H is the "Work Resource"
In Column J is the "Status" - unfortunately, there are several "Open" status'" (and also "Rejected")
In Column Q is the "Completed" date

My week starts on a Sunday. (For instance w/c Sunday 27th February 2022 to Saturday 5th March 2022 or Sunday 6th March 2022 - Saturday 12th March 2022)

What I need to do is have a count of the number of "Open/active" work items in a particular week. The count needs to be whatever is there on the Saturday.

There is also a Column M which has an automated timestamp. So, for instance if Column J - Status is amended to "Rejected" it will input the below. It is worth mentioning that no date is input anywhere else for the date a work item is rejected.

Column A (Ref Number)Column G (Received Date) Column H (Resource)Column J (Status)Column Q (Comp. Date)Column M (Audit Trail)
1000118/02/2022Department AComplete28/02/2022
1000223/02/2022Department ASubmitted
1000323/02/2022Department AIn QA
1000425/02/2002Department AComplete04/03/2022
1000525/02/2022Department BComplete27/02/2022
1000625/02/2022Department BIn investigation
1000725/02/2022Department BRejected28/02/2022 11:15:13 - Status change: Rejected
1000801/03/2022Department ASubmitted
1000901/03/2022Department AComplete02/03/2022

So, in essence I need a count of

Open work items
w/c 20/02/2022 (to Saturday 26/2/2022 (ANSWER : 6) ....... 10001 / 10002 / 10003 / 10004 / 10006 / 10007
w/c 27/02/2022 (to Saturday 05/03/2022 (ANSWER : 5) ....... 10002 / 10003 / 10006 / 10007 / 100008

I hope that makes sense and someone can help!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi,

Your written description does not match your expected results.
You say you want "a count of the number of "Open/active" work items in a particular week"
But looking at your expected results, it's count of Open/active items up to the end of the particular week, Not within that week.

Based on your expected results, use either formula:

Book3.xlsx
AGHJMQRST
1Column A (Ref Number)Column G (Received Date)Column H (Resource)Column J (Status)Column M (Audit Trail)Column Q (Comp. Date)As of w/cOpen items
2100012/18/2022Department AComplete2/28/20222/26/202277
3100022/23/2022Department ASubmitted3/5/202255
4100032/23/2022Department AIn QA
5100042/25/2022Department AComplete3/4/2022
6100052/25/2022Department BComplete2/27/2022
7100062/25/2022Department BIn investigation
8100072/25/2022Department BRejected28/02/2022 11:15:13 - Status change: Rejected
9100083/1/2022Department ASubmitted
10100093/1/2022Department AComplete3/2/2022
Sheet1032
Cell Formulas
RangeFormula
S2:S3S2=COUNTIFS(G$2:G$10,"<="&R2,Q$2:Q$10,">="&R2)+COUNTIFS(G$2:G$10,"<="&R2,Q$2:Q$10,"")
T2:T3T2=SUMPRODUCT((G$2:G$10<=R2)*((Q$2:Q$10>=R2)+(Q$2:Q$10="")))
 
Upvote 0
Solution
Sincere apologies, for not coming back to you. This has worked perfectly. I really appreciate your help!
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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