I have an employee timesheet on a worksheet. Each day is split into two columns (AM and PM).
Column A has employee names
Column B is the first day (e.g. Monday) AM shift
Column C is the PM shift
Each AM or PM shift could be represented by the following inputs which are conditionally formatted.S Sick
AL Annual Leave
** (Any other input means shift worked)
(no input means shift not worked/day off/do not count etc.
Column D requires a function to check for Sick input "S" in either B or C, returning 1 if both columns are "S", 0.5 if one of the columns is "S" or 0 if neither column has "S"
Column E requires a function to check for Annual Leave input "AL" again showing as 1, 0.5 or 0
Column F requires a function to check for any other input, again showing as 1, 0.5 or 0
If column D has a value of 1, columns E and F cannot have a value at all and so forth...
If column D has a value of 0.5, columns E and F can only have a maximum value of 0.5...
The value of D, E and F has to be a maximum of 1.
I need three functions to handle the input options. I think each function has to handle either "S"; "AL"; "**" and "".
Any help would be much appreciated.
Bookmarks