Dear reader,
I'm a little lost on how to go about solving what I have in mind. First some background info; So I'm working on a huge schedule. To make things a little easier in getting the schedule right I'm trying to spot certain issue's in the schedule. For one, I'd like to know when employees have two shifts on the same day, as this is not allowed. I also am trying to check when they have a shift 1 day right after another shift, and I'm trying to check if they have a shift 2 days after a shift. Finally I'm trying to make sure that if an employee has a weekend shift that they dont have a weekend shift the weekend before and/or after that weekend shift.
So I've figured out how to check for multiple shifts on the same day I think. I have made a helper column, which combines their names and the dates and I check if there are multiples values of those in the column using this formula:
So my spreadsheet basicly looks like this:
So I think the double shift check is working but how do I go about checking the other data?
Any help is much appreciated!
Kind regards
I'm a little lost on how to go about solving what I have in mind. First some background info; So I'm working on a huge schedule. To make things a little easier in getting the schedule right I'm trying to spot certain issue's in the schedule. For one, I'd like to know when employees have two shifts on the same day, as this is not allowed. I also am trying to check when they have a shift 1 day right after another shift, and I'm trying to check if they have a shift 2 days after a shift. Finally I'm trying to make sure that if an employee has a weekend shift that they dont have a weekend shift the weekend before and/or after that weekend shift.
So I've figured out how to check for multiple shifts on the same day I think. I have made a helper column, which combines their names and the dates and I check if there are multiples values of those in the column using this formula:
VBA Code:
=IF(COUNTIFS($D$2:$D$2500;D2)>1;"FAIL";"PASS")
So my spreadsheet basicly looks like this:
Date | Day | Employee | Combined | Double Shifts | Consequtive Days | 2 Days Rest | Weekend Check |
01-01-2021 | Fri | Bart | 01-01-2021_Kelly | PASS | PASS | FAIL | PASS |
02-01-2021 | Sat | Mark | 02-01-2021_Mark | PASS | PASS | PASS | FAIL |
03-01-2021 | Sun | Kelly | 03-01-2021_Kelly | PASS | PASS | FAIL | PASS |
04-01-2021 | Mon | Rose | 04-01-2021_Rose | PASS | PASS | PASS | PASS |
05-01-2021 | Tue | Bart | 05-01-2021_Bart | PASS | FAIL | FAIL | PASS |
06-01-2021 | Wed | Bart | 06-01-2021_Bart | PASS | FAIL | FAIL | PASS |
07-01-2021 | Thu | Rose | 07-01-2021_Rose | PASS | PASS | PASS | PASS |
08-01-2021 | Fri | Kelly | 08-01-2021_Kelly | PASS | PASS | PASS | PASS |
09-01-2021 | Sat | Mark | 09-01-2021_Mark | PASS | FAIL | FAIL | FAIL |
10-01-2021 | Sun | Mark | 10-01-2021_Mark | FAIL | FAIL | FAIL | FAIL |
10-01-2021 | Sun | Mark | 10-01-2021_Mark | FAIL | FAIL | FAIL | FAIL |
So I think the double shift check is working but how do I go about checking the other data?
Any help is much appreciated!
Kind regards