Evening
I am creating a rota and i am looking for help write a formula to check if a person in on holiday at specific dates, or is a non working day for them.
I have tried various Index Match combinations, FILTER (i am on 365) and numerous other but can only get it working for a single date, not a range. Column A to C Shows the holidays, E to F Shows non working days and Column L to M is where i want to populate (hard coded in the example to show the outcome).
This is an example of one of the attempts (for a single date not a range) IFERROR(IF(FILTER(Holiday,ISNUMBER(SEARCH(L$2,Holiday))*(B3=K3),"")<>"","Holiday",IF(MATCH(L$2&LEFT($H3,3),$b$3:$b$8,0),"Unavailable")),IF(FILTER(Holiday,ISNUMBER(SEARCH(L$2,Holiday))*(B3=K3),"")<>"","Holiday",""))
any help is appreciated. Thank you
I am creating a rota and i am looking for help write a formula to check if a person in on holiday at specific dates, or is a non working day for them.
I have tried various Index Match combinations, FILTER (i am on 365) and numerous other but can only get it working for a single date, not a range. Column A to C Shows the holidays, E to F Shows non working days and Column L to M is where i want to populate (hard coded in the example to show the outcome).
This is an example of one of the attempts (for a single date not a range) IFERROR(IF(FILTER(Holiday,ISNUMBER(SEARCH(L$2,Holiday))*(B3=K3),"")<>"","Holiday",IF(MATCH(L$2&LEFT($H3,3),$b$3:$b$8,0),"Unavailable")),IF(FILTER(Holiday,ISNUMBER(SEARCH(L$2,Holiday))*(B3=K3),"")<>"","Holiday",""))
any help is appreciated. Thank you
Rota Formula Example.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | Holidays | Working Pattern | Formula needed to identify when a person is on hoiday or is a non working day | ||||||||||||||
2 | Person | Start | End | Person | Non Working Day | Date | Person | Approver check | Short Date | Person 1 | Person 2 | Person 3 | |||||
3 | Person 1 | 31/01/2022 | 03/02/2022 | Person 1 | Fri | Monday, 31 January 2022 | Person 1 | Check | 31/01/2022 | Holiday | |||||||
4 | Person 2 | 02/02/2022 | 02/02/2022 | Person 2 | Thur | Tuesday, 01 February 2022 | Person 2 | 01/02/2022 | Holiday | ||||||||
5 | Person 3 | 14/02/2022 | 16/02/2022 | Person 3 | None | Wednesday, 02 February 2022 | Person 3 | 02/02/2022 | Holiday | Holiday | |||||||
6 | Person 1 | 10/02/2022 | 10/02/2022 | Thursday, 03 February 2022 | Person 3 | 03/02/2022 | Holiday | Unavailable | |||||||||
7 | Person 2 | 23/02/2022 | 25/02/2022 | Friday, 04 February 2022 | Person 1 | Check | 04/02/2022 | Unavailable | |||||||||
8 | Person 3 | 23/02/2022 | 23/02/2022 | Monday, 07 February 2022 | Person 1 | 07/02/2022 | |||||||||||
9 | Tuesday, 08 February 2022 | Person 2 | 08/02/2022 | ||||||||||||||
10 | Wednesday, 09 February 2022 | Person 3 | 09/02/2022 | ||||||||||||||
11 | Thursday, 10 February 2022 | Person 2 | Check | 10/02/2022 | Holiday | Unavailable | |||||||||||
12 | Friday, 11 February 2022 | 11/02/2022 | Unavailable | ||||||||||||||
13 | Monday, 14 February 2022 | 14/02/2022 | Holiday | ||||||||||||||
14 | Tuesday, 15 February 2022 | 15/02/2022 | Holiday | ||||||||||||||
15 | Wednesday, 16 February 2022 | 16/02/2022 | Holiday | ||||||||||||||
16 | Thursday, 17 February 2022 | 17/02/2022 | Unavailable | ||||||||||||||
17 | Friday, 18 February 2022 | 18/02/2022 | Unavailable | ||||||||||||||
18 | Monday, 21 February 2022 | 21/02/2022 | |||||||||||||||
19 | Tuesday, 22 February 2022 | 22/02/2022 | |||||||||||||||
20 | Wednesday, 23 February 2022 | 23/02/2022 | Holiday | Holiday | |||||||||||||
21 | Thursday, 24 February 2022 | 24/02/2022 | Unavailable | ||||||||||||||
22 | Friday, 25 February 2022 | 25/02/2022 | Unavailable | Holiday | |||||||||||||
23 | |||||||||||||||||
Sheet1 |