Hi, so I am looking for a function to incorporate into a leave of absence spreadsheet that another department uses. What I want the function to do is color a specific cell - we'll just say the person's name if the amount of time they have been out on leave exceeds a certain amount of time. Now here's where it gets tricky. First off, it is entirely possible that someone might go on multiple leaves in their anniversary year. Let's say someone has a January anniversary and they go out on leave in February and are out for 60 days. That would be one row on the spreadsheet for them containing their leave date and then their return date. Let's say they then go on another leave later in the year for 40 days. That would be another row for that same person again showing that leave date and then the return date. Basically the cell where their name is located should light up a color if the combined amount of days from both leaves exceed 90. This is applicable for all leaves except Worker's Compensation. If they are out on Worker's Compensation (W/C) it should be 6 months. Basically the setup of cells is as follows:
A B C D E 1 Name Leave type Leave start date Return to work Date Amount of days out 2 John A/S 2/1/21 4/2/21 60 3 John A/S 8/1/21 9/10/21 40
So in this case, John would light up because his total amount of days out would be 100 and he is NOT on a W/C leave so it would be if it's greater than 90 days. This log would contain multiple different employee names, so the same should be applicable to them. Is it possible to do this?
Bookmarks