Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9788

Employee Schedule Conditional Formatting [closed]

$
0
0

We have a Google Sheet that contains the next 5 months of shifts of our employees. Column A showing the exact date and time of the beginning of their shift and Column B showing the exact date + time of the end.

enter image description here

We want these entries to be represented in Sheet1. Columns C-AG are broken into half-hour increments and there will be 7 days represented as unofficial tables (Sun-Sat). The header rows above each "day" (i.e. row 6 or row 11) already have functions to allow the viewer to select today's date, adjusting the dates shown + day of week accordingly. Ideally the cells where people are working would be automatically indicated via conditional formatting.enter image description here

Is there one or more Functions we can add to either page to make this happen?

Our current hypothesis would be something like:In the second sheet, If C cell = [Employee Name i.e. Sam] find row number that matches the date of B3. Then take the Hour value (i.e. 9 AM) and add column D value (duration).If the time code in row 6 falls within the range of the range defined by Start Date/Time + Duration then conditionally code it green. Would this work? What would the formula/function look like for this?


Viewing all articles
Browse latest Browse all 9788
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>