Question about formulation of some desired output with CountIFS?

Dezom

New Member
Joined
Jul 21, 2020
Messages
21
Office Version
  1. 2016
Platform
  1. Windows
  2. Mobile
Hi Everyone,
I need to formulate following two desired output whose explanations can be also found in EXCEL I have copied here.
I though I can use only countifs to formulate them but I could not get it worked. I will be glad with your help.

Thanks you in advance

Quextion countifs.xlsx
ABCDEFGHIJKLMNOPQ
1WorkerTaskWeekDeadlineWork StatuConfirmation date of finishing
2Worker1AWeek4321.10.2020OK23.10.2020
3Worker2BWeek4323.10.2020OK23.10.2020
4Worker3CWeek4321.10.2020OK23.10.2020Number of Delayed workToday's DateLast weekWorker of the last Week
5Worker4DWeek4323.10.2020ProcessedFormulation?25.10.2020Week43 Formulation?
6Worker3EWeek4322.10.2020ProcessedExplanation two filters are required 1- Work statu = "Processed" 2- Today's date(dynamic date) > DeadlineExplanation Choose the worker whose delayed number of work is minimum while week =Week43 Count the Confirmation date of finishing = Blank and Deadline>Confirmation date of finishing) and choose the worker who has min of this counting. For example for Week43 , Worker1 is the best one
7Worker6FWeek4428.10.2020Processed
8Worker6GWeek4110.10.2020OK10.10.2020
9Worker8HWeek4320.10.2020Waiting
10Worker1KWeek4322.10.2020OK21.10.2020
11Worker2MWeek452.11.2020Processed
12
13
14
15
Sheet1
Cell Formulas
RangeFormula
L5L5=TODAY()
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
For the first part
Excel Formula:
=COUNTIFS(E:E,"Processed",D:D,"<"&L5)
For the second part, why Worker1? Based on your criteria, Worker1, Worker2, Worker3 and Worker6 are all equal with a count of 0.
 
Upvote 0
For the first part
Excel Formula:
=COUNTIFS(E:E,"Processed",D:D,"<"&L5)
For the second part, why Worker1? Based on your criteria, Worker1, Worker2, Worker3 and Worker6 are all equal with a count of 0.
Hello Thanks a lot. first one is working as it should be.

For second one You are right. I made a mistake. Please consider this table below.
Here For Week43, Worker1 has the best performance. Because there is not task which he still working on after the deadline or which he finished and confirmed after the deadline as you see.
If there would have been another worker whose tasks are also confirmed until its deadline. Both would be the equal. In this situation Formula should look at task number of the worker. The worker who has more task in this week should be choosen as best performance worker.

Quextion countifs.xlsx
ABCDEF
1WorkerTaskWeekDeadlineWork StatuConfirmation date of finishing
2Worker1AWeek4321.10.2020OK21.10.2020
3Worker2BWeek4323.10.2020OK24.10.2020
4Worker3CWeek4321.10.2020OK23.10.2020
5Worker4DWeek4323.10.2020Processed
6Worker3EWeek4322.10.2020Processed
7Worker6FWeek4428.10.2020Processed
8Worker6GWeek4110.10.2020OK10.10.2020
9Worker8HWeek4320.10.2020Waiting
10Worker1KWeek4322.10.2020OK21.10.2020
11Worker2MWeek452.11.2020Processed
Sheet1
 
Last edited:
Upvote 0
See if this gives you what you want,
Book1
ABCDEFGHIJK
1WorkerTaskWeekDeadlineWork StatuConfirmation date of finishingPerformance
2Worker1AWeek4321/10/2020OK23/10/20202
3Worker2BWeek4323/10/2020OK23/10/20201
4Worker3CWeek4321/10/2020OK23/10/20201Number of Delayed workToday's DateLast weekWorker of the last Week
5Worker4DWeek4323/10/2020Processed0225/10/2020Week43Worker1
6Worker3EWeek4322/10/2020Processed1
7Worker6FWeek4428/10/2020Processed0
8Worker6GWeek4110/10/2020OK10/10/20200
9Worker8HWeek4320/10/2020Waiting0
10Worker1KWeek4322/10/2020OK21/10/20202
11Worker2MWeek4502/11/2020Processed1
Sheet9
Cell Formulas
RangeFormula
H5H5=COUNTIFS(E:E,"Processed",D:D,"<"&I5)
I5I5=TODAY()
K5K5=INDEX($A$2:$A$11,MATCH(MAX($G$2:$G$11),$G$2:$G$11,0))
G2:G11G2=COUNTIFS($A$2:$A$11,A2,$C$2:$C$11,$J$5,$F$2:$F$11,"<>")
 
Upvote 0
Solution
See if this gives you what you want,
Book1
ABCDEFGHIJK
1WorkerTaskWeekDeadlineWork StatuConfirmation date of finishingPerformance
2Worker1AWeek4321/10/2020OK23/10/20202
3Worker2BWeek4323/10/2020OK23/10/20201
4Worker3CWeek4321/10/2020OK23/10/20201Number of Delayed workToday's DateLast weekWorker of the last Week
5Worker4DWeek4323/10/2020Processed0225/10/2020Week43Worker1
6Worker3EWeek4322/10/2020Processed1
7Worker6FWeek4428/10/2020Processed0
8Worker6GWeek4110/10/2020OK10/10/20200
9Worker8HWeek4320/10/2020Waiting0
10Worker1KWeek4322/10/2020OK21/10/20202
11Worker2MWeek4502/11/2020Processed1
Sheet9
Cell Formulas
RangeFormula
H5H5=COUNTIFS(E:E,"Processed",D:D,"<"&I5)
I5I5=TODAY()
K5K5=INDEX($A$2:$A$11,MATCH(MAX($G$2:$G$11),$G$2:$G$11,0))
G2:G11G2=COUNTIFS($A$2:$A$11,A2,$C$2:$C$11,$J$5,$F$2:$F$11,"<>")
Hello Thanks
It works in that way.
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,946
Members
449,480
Latest member
yesitisasport

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