I have a weekly timesheet that i need to have a cell fill with either 0, .5 or the sum of other cells based on a code.
I have attached a sample workbook.
Column D is where the code will be entered. Codes are H for Holiday, V for Vacation, S for Sick. I have formulas in column E to automatically put in 8 hours if those codes are used. Cell E21 should equal 0 in this case.
If a T or L is found in Column D, it should sum the amounts in column E for those rows which contain the T or L. If no values in column D and E20 is >=6, E21 should be .5, if <6, E21 should be 0.
This will do part of what I need but I can't make it work for the holiday,vacation and sick codes.
=IF(E65<6,0,IF(SUMIF(D49:D64,"<>",E49:E64)=0,0.5,SUMIF(D49:D64,"<>",E49:E64)))
Test Workbook.xlsx
Bookmarks