hi, i am new here in this forum, i was just wondering if you could help me with my formula. what i am trying to do is to get the total overtime hours of employees for the whole month. here is the formula i used but actually this one is only for seven days
"=IF(AND(WEEKDAY($B$4)>=6,OR(C5>=8,C5<8)),C5,IF(C5<=8,0,(C5-8)))+IF(AND(WEEKDAY(E$4)>=6,OR(F5>=8,F5<8)),F5,IF(F5<=8,0,(F5-8)))+IF(AND(WEEKDAY(H$4)>=6,OR(I5>=8,I5<8)),I5,IF(I5<=8,0,(I5-8)))+IF(AND(WEEKDAY(K$4)>=6,OR(L5>=8,L5<8)),L5,IF(L5<=8,0,(L5-8)))+IF(AND(WEEKDAY(N$4)>=6,OR(O5>=8,O5<8)),O5,IF(O5<=8,0,(O5-8)))+IF(AND(WEEKDAY(Q$4)>=6,OR(R5>=8,R5<8)),R5,IF(R5<=8,0,(R5-8)))+IF(AND(WEEKDAY(T$4)>=6,OR(U5>=8,U5<8)),U5,IF(U5<=8,0,(U5-8)))"
i am considering fridays and saturdays as overtime and those exceeding 8 hours in weekdays.
any help is appreciated, thanks
Bookmarks