Any of the grayed out fields will have automatic values. White fields will be manually filled in.
The problem is with B7 and C7. These will be gray once resolved.
B7 needs to calculate for hours in B2:B6 with a max value of 40 if C7 has a value above 0 and without that max value if C7 is 0.
C7 needs to calculate for hours in C2:C6 with a minimum value of 0. This also needs to read 0 when sick, vacation, or other is entered into D2:F6 (or D7:F7).
I've been working on this one problem for days.
Bookmarks