Hi everyone,
Just had a question, I have a sheet that is used to calculate the theshold in percentage for each manager, to ensure their team stays within the 10% limit, which starts with current day. This is good.
Now Im looking for future state. e.g. Name 3 is taking May 1 off for 4 days, which includes Week 17 and 18. Name 4 is takin July 5 off for 27 days, which includes week 27 to week 30. I cant seem to figure out the formula to get this in column R to T.
If more clarity is need, please let me know.
Regards,
Erik
Just had a question, I have a sheet that is used to calculate the theshold in percentage for each manager, to ensure their team stays within the 10% limit, which starts with current day. This is good.
Now Im looking for future state. e.g. Name 3 is taking May 1 off for 4 days, which includes Week 17 and 18. Name 4 is takin July 5 off for 27 days, which includes week 27 to week 30. I cant seem to figure out the formula to get this in column R to T.
HRRC Canada Time Off Tracker.xlsb | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | |||
1 | Login | Name | First Day Missed | Number of Days | End Date | Manager | Employment Type | Region | Approval Status | Type of leave | Approver Comments | Balance | Manager | Total HC | 0.1 | Week Number | Total HC | 0.1 | ||||
2 | Name 1 | 3/1/2022 | 39 | 4/9/2022 | Manager 1 | Approved | LOA | LOA not tracked | Team | 75 | 1.33% | 1 | 75 | |||||||||
3 | Name 2 | 3/15/2022 | 17 | 4/1/2022 | Manager 2 | Approved | Vacation | Vac not tracked | Manager 1 | 4 | Exceeds Target | 2 | 75 | |||||||||
4 | Name 3 | 5/1/2022 | 4 | 5/5/2022 | Manager 3 | Approved | Vacation | Vac not tracked | Manager 2 | 0 | 0% | 3 | 75 | |||||||||
5 | Name 4 | 7/5/2022 | 27 | 8/1/2022 | Manager 4 | Approved | LOA | LOA not tracked | Manager 3 | 8 | 0.00% | 4 | 75 | |||||||||
6 | Manager 4 | 21 | 0.00% | 5 | 75 | |||||||||||||||||
7 | Manager 5 | 4 | 0.00% | 6 | 75 | |||||||||||||||||
8 | Manager 6 | 15 | 0.00% | 7 | 75 | |||||||||||||||||
9 | Manager 7 | 11 | 0.00% | 8 | 75 | |||||||||||||||||
10 | Manager 8 | 12 | 0.00% | 9 | 75 | |||||||||||||||||
11 | Manager 9 | 0 | 0% | 10 | 75 | |||||||||||||||||
12 | 11 | 75 | ||||||||||||||||||||
13 | 12 | 75 | ||||||||||||||||||||
14 | 13 | 75 | ||||||||||||||||||||
15 | 14 | 75 | ||||||||||||||||||||
16 | 15 | 75 | ||||||||||||||||||||
17 | 16 | 75 | ||||||||||||||||||||
18 | 17 | 75 | ||||||||||||||||||||
19 | 18 | 75 | ||||||||||||||||||||
20 | 19 | 75 | ||||||||||||||||||||
21 | 20 | 75 | ||||||||||||||||||||
22 | 21 | 75 | ||||||||||||||||||||
23 | 22 | 75 | ||||||||||||||||||||
24 | 23 | 75 | ||||||||||||||||||||
25 | 24 | 75 | ||||||||||||||||||||
26 | 25 | 75 | ||||||||||||||||||||
27 | 26 | 75 | ||||||||||||||||||||
28 | 27 | 75 | ||||||||||||||||||||
29 | 28 | 75 | ||||||||||||||||||||
30 | 29 | 75 | ||||||||||||||||||||
31 | 30 | 75 | ||||||||||||||||||||
32 | 31 | 75 | ||||||||||||||||||||
33 | 32 | 75 | ||||||||||||||||||||
34 | 33 | 75 | ||||||||||||||||||||
35 | 34 | 75 | ||||||||||||||||||||
36 | 35 | 75 | ||||||||||||||||||||
37 | 36 | 75 | ||||||||||||||||||||
38 | 37 | 75 | ||||||||||||||||||||
39 | 38 | 75 | ||||||||||||||||||||
40 | 39 | 75 | ||||||||||||||||||||
41 | 40 | 75 | ||||||||||||||||||||
42 | 41 | 75 | ||||||||||||||||||||
43 | 42 | 75 | ||||||||||||||||||||
44 | 43 | 75 | ||||||||||||||||||||
45 | 44 | 75 | ||||||||||||||||||||
46 | 45 | 75 | ||||||||||||||||||||
47 | 46 | 75 | ||||||||||||||||||||
48 | 47 | 75 | ||||||||||||||||||||
49 | 48 | 75 | ||||||||||||||||||||
50 | 49 | 75 | ||||||||||||||||||||
51 | 50 | 75 | ||||||||||||||||||||
52 | 51 | 75 | ||||||||||||||||||||
53 | 52 | 75 | ||||||||||||||||||||
54 | 53 | 75 | ||||||||||||||||||||
2022 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D5 | D2 | =[@[End Date]]-[@[First Day Missed]] |
L2:L5 | L2 | =IF(J2='Do Not Delete'!$C$2,10-SUMIFS([Number of Days],[Login],[@Login],[Approval Status],'Do Not Delete'!$E$2,[Type of leave],'Do Not Delete'!$C$2)-SUMIFS([Number of Days],[Login],[@Login],[Approval Status],'Do Not Delete'!$E$2,[Type of leave],'Do Not Delete'!$C$4),IF(J2='Do Not Delete'!$C$3,2-COUNTIFS([Login],[@Login],[Approval Status],'Do Not Delete'!$E$2,[Type of leave],'Do Not Delete'!$C$3),IF(J2='Do Not Delete'!$C$4,3-SUMIFS([Number of Days],[Login],[@Login],[Approval Status],'Do Not Delete'!$E$2,[Type of leave],'Do Not Delete'!$C$4),IF(J2='Do Not Delete'!$C$5,5-SUMIFS([Number of Days],[Login],[@Login],[Approval Status],'Do Not Delete'!$E$2,[Type of leave],'Do Not Delete'!$C$5),IF(J2='Do Not Delete'!$C$6,3-SUMIFS([Number of Days],[Login],[@Login],[Approval Status],'Do Not Delete'!$E$2,[Type of leave],'Do Not Delete'!$C$6),IF(J2='Do Not Delete'!$C$7,"Vac not tracked",IF(J2='Do Not Delete'!$C$8,"LOA not tracked","Not Used"))))))) |
P2 | P2 | =IFERROR(IF((COUNTIFS(Table1[First Day Missed],"<="&TODAY(),Table1[End Date],">="&TODAY())/$O2)>$P$1,"Exceeds Target",COUNTIFS(Table1[First Day Missed],"<="&TODAY(),Table1[End Date],">="&TODAY())/$O2),"0%") |
P3:P11 | P3 | =IFERROR(IF((COUNTIFS(Table1[Manager],$N3,Table1[First Day Missed],"<="&TODAY(),Table1[End Date],">="&TODAY())/$O3)>$P$1,"Exceeds Target",COUNTIFS(Table1[Manager],$N3,Table1[First Day Missed],"<="&TODAY(),Table1[End Date],">="&TODAY())/$O3),"0%") |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
G5 | Cell Value | contains "Green" | text | NO |
G5 | Cell Value | contains "Blue" | text | NO |
G4 | Cell Value | contains "Green" | text | NO |
G4 | Cell Value | contains "Blue" | text | NO |
G2:G3 | Cell Value | contains "Green" | text | NO |
G2:G3 | Cell Value | contains "Blue" | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
A2:A5 | Any value | |
B2:B5 | Any value | |
C2:C5 | Any value | |
D2:D5 | Any value | |
E2:E5 | Any value | |
N1:P1 | Any value | |
P2 | Any value | |
N3:P11 | Any value | |
G2:G5 | List | ='Do Not Delete'!$B$2:$B$3 |
H2:H5 | List | ='Do Not Delete'!$B$5:$B$7 |
I2:I5 | List | ='Do Not Delete'!$E$2 |
J2:J5 | List | ='Do Not Delete'!$C$2:$C$8 |
K2:K5 | Any value | |
L2:L5 | Any value |
If more clarity is need, please let me know.
Regards,
Erik