I am trying to organise an on call roster where an individual is selected for a seven day period. This is in a table with name - start date - end date of when they are 'on call'.
In a second sheet, I want a second table where people input the dates they are unavailable to be on call due to annual leave etc. It will also be in a table with name - start date - end date of when they are unavailable.
In a fourth column in the roster table - I want a formula that will automatically say 'Unavailable' when someone is selected to go on call that clashes with any of the dates they have put in the unavailable table.
In this scenario, Steven would be unavailable to be on call on 06/01/23 - 13/01/23 because it clashes with his annual leave from 02/01/23 - 08/01/23.
I can find answers on how to compare two date ranges, but I can't find a way to check against all the dates in the 'unavailable' table against each person's name.
Thanks if anyone can help
In a second sheet, I want a second table where people input the dates they are unavailable to be on call due to annual leave etc. It will also be in a table with name - start date - end date of when they are unavailable.
In a fourth column in the roster table - I want a formula that will automatically say 'Unavailable' when someone is selected to go on call that clashes with any of the dates they have put in the unavailable table.
In this scenario, Steven would be unavailable to be on call on 06/01/23 - 13/01/23 because it clashes with his annual leave from 02/01/23 - 08/01/23.
I can find answers on how to compare two date ranges, but I can't find a way to check against all the dates in the 'unavailable' table against each person's name.
Thanks if anyone can help