=SUMIFS(MG3:MT3,MG$2:MT$2,">1",MG$2:MT$2,"<7",MG3:MT3,">8",MG3:MT3,"<=10")-(COUNTIFS(MG$2:MT$2,">1",MG$2:MT$2,"<7",MG3:MT3,">8",MG3:MT3,"<=10")*8)+COUNTIFS(MG$2:MT$2,">1",MG$2:MT$2,"<7",MG3:MT3,">10")*2+SUMIFS(MG3:MT3,MG$2:MT$2,7,MG3:MT3,"<=8")+(COUNTIFS(MG$2:MT$2,7,MG3:MT3,">8")*8)
Where row 1 is the date and row 2 is the day I am looking for MV3 (time and half column) to only look where the day is Saturday and sum what are the hours entered for those days.
The formula above summed the first 8 hours because >8 goes into double time. Now the business rules have changed (meh) and all hours regardless of amount and where the day worked is Saturday = time and a half.
So if there was only two saturdays on a paycycle and the operator worked 8 and 12 hours MV would show 20
Can you help?
Bookmarks