Hi forum!
I don't believe I've posted on this before, however I've been stumped on this problem for a few days and any insight would be immensely appreciated !
I have a 3 week moving attendance data set which I update/audit weekly. There's 2 conditions which I audit for: (a) if an employee works a full week, do they at least have one day off? -or- (b) if an employee works 2 consecutive full weeks, do they have at least 2 consecutive days off? - the latter is the one I'm stumped on!!
The data set:
<tbody>
</tbody>
Column W (a) checks for the first condition (which I have solved) however column X (b) is supposed to do check for the second condition; the first row (D.O.M.) contains the day of the month and the first column contains the employee number.
I have pseudo-code written for essentially what I'd like for output:
IF Series {1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0} Exists in Row Range (B2:V2) THEN TRUE ELSE FALSE etc.
I think that's all - let me know if I need to provide any additional info.
Thanks!
I don't believe I've posted on this before, however I've been stumped on this problem for a few days and any insight would be immensely appreciated !
I have a 3 week moving attendance data set which I update/audit weekly. There's 2 conditions which I audit for: (a) if an employee works a full week, do they at least have one day off? -or- (b) if an employee works 2 consecutive full weeks, do they have at least 2 consecutive days off? - the latter is the one I'm stumped on!!
The data set:
Emp#/D.O.M. | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | (a) | (b) |
1234 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | TRUE | TRUE |
1235 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | FALSE | TRUE |
1236 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | FALSE | FALSE |
<tbody>
</tbody>
Column W (a) checks for the first condition (which I have solved) however column X (b) is supposed to do check for the second condition; the first row (D.O.M.) contains the day of the month and the first column contains the employee number.
I have pseudo-code written for essentially what I'd like for output:
IF Series {1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0} Exists in Row Range (B2:V2) THEN TRUE ELSE FALSE etc.
I think that's all - let me know if I need to provide any additional info.
Thanks!