(1)〜(10)の式を入力して、下方へフィルコピー
(1) U7セル =IF(OR(COUNT(O7,R7)<2,COUNT(P7:Q7)=1),"",MAX(0,MIN("18:00",R7)-O7)-MAX(0,MIN("18:00",Q7*1)-P7)) (2) V7セル =IF(U7="","",R7-O7-Q7+P7-U7) (3) W7セル =IF(U7="","",MAX(0,R7-MAX("22:00",O7))-MAX(0,Q7-MAX("22:00",P7)))
(4) Z7セル =IF(U7="","",(WORKDAY(N7-1,1,$A$2:$A$1000)=N7)*$D$3) (5) AA7セル =IF(U7="","",(Z7=0)*$D$6) (6) AB7セル =IF(U7="","",AND(Z7,WEEKDAY(N7)<>6)*$D$4) (7) AC7セル =IF($U7="","",($AB7=0)*$D$7) (8) AD7セル =IF($U7="","",($AB7<>0)*$D$5) (9) AE7セル =IF($U7="","",($AB7=0)*$D$8)
(10) S7セル =IF(N7="","",ROUND(((Z7+AA7)*U7+(AB7+AC7)*V7+(AD7+AE7)*W7)*24,0))
行 ______N______ ____O____ ____P____ ____Q____ ____R____ __S__ _T_ ____U____ ____V____ ____W____ _X_ _Y_ _Z_ _AA_ _AB_ _AC_ _AD_ _AE_ 6 日付 勤務開始 休憩開始 休憩終了 勤務終了 金額 18時まで 18時以降 22時以降 D3 D6 D4 D7 D5 D8 7 2014/7/17(木) 11:45 14:30 17:00 22:45 6,788 3:45 4:45 0:45 700 0 750 0 800 0 8 2014/7/18(金) 20:00 21:45 22:45 26:00 7,175 0:00 5:00 3:15 700 0 0 850 0 900
-------------------------------------- (11) E3セル =SUMIF(Z:Z,">0",U:U)*24 (12) E4セル =SUMIF(AB:AB,">0",V:V)*24 (13) E5セル =SUMIF(AD:AD,">0",W:W)*24 (14) E6セル =SUMIF(AA:AA,">0",U:U)*24 (15) E7セル =SUMIF(AC:AC,">0",V:V)*24 (16) E8セル =SUMIF(AE:AE,">0",W:W)*24
行 _D_ _ E _ 3 700 3.75 4 750 4.75 5 800 0.75 6 800 0.00 7 850 5.00 8 900 3.25
|