C
Craig
I didn't receive a response on my last post so I worked on my problem some and came up with some results. Could someone look over my formulas and tell me if I can achieve this same result any easier?
Here is a sample of the worksheet:
D E F G H I J K L M N O
22 Sun Mon Tue Wed Thu Fri Sat Reg OT x1.5 OTx 2 Rate Total
23 off 12 11 11 11 11 off 40 15 1 10.00 $645.00
24
The code in column "K" is:
=SUM(IF(NOT(ISNUMBER(D23)),0,MIN(8,D23)),IF(NOT(ISNUMBER(E23)),0,MIN(8,E23)),IF(NOT(ISNUMBER(F23)),0,MIN(8,F23)),IF(NOT(ISNUMBER(G23)),0,MIN(8,G23)),IF(NOT(ISNUMBER(H23)),0,MIN(8,H23)),IF(NOT(ISNUMBER(I23)),0,MIN(8,I23)),IF(NOT(ISNUMBER(J23)),0,MIN(8,J23)))
The code in column "L" is:
=SUM(IF(AND(ISNUMBER(D23),D23>8),IF(D23>11,3,SUM(D23-8)),0),IF(AND(ISNUMBER(E23),E23>8),IF(E23>11,3,SUM(E23-8)),0),IF(AND(ISNUMBER(F23),F23>8),IF(F23>11,3,SUM(F23-8)),0),IF(AND(ISNUMBER(G23),G23>8),IF(G23>11,3,SUM(G23-8)),0),IF(AND(ISNUMBER(H23),H23>8),IF(H23>11,3,SUM(H23-8)),0),IF(AND(ISNUMBER(I23),I23>8),IF(I23>11,3,SUM(I23-8)),0),IF(AND(ISNUMBER(J23),J23>8),IF(J23>11,3,SUM(J23-8)),0))
The code in column "M" is:
=SUM(IF(AND(ISNUMBER(D23),D23>11),SUM(D23-11),0),IF(AND(ISNUMBER(E23),E23>11),SUM(E23-11),0),IF(AND(ISNUMBER(F23),F23>11),SUM(F23-11),0),IF(AND(ISNUMBER(G23),G23>11),SUM(G23-11),0),IF(AND(ISNUMBER(H23),H23>11),SUM(H23-11),0),IF(AND(ISNUMBER(I23),I23>11),SUM(I23-11),0),IF(AND(ISNUMBER(J23),J23>11),SUM(J23-11),0))
Can I get this result in a more simplified way?
Thanks Craig
Here is a sample of the worksheet:
D E F G H I J K L M N O
22 Sun Mon Tue Wed Thu Fri Sat Reg OT x1.5 OTx 2 Rate Total
23 off 12 11 11 11 11 off 40 15 1 10.00 $645.00
24
The code in column "K" is:
=SUM(IF(NOT(ISNUMBER(D23)),0,MIN(8,D23)),IF(NOT(ISNUMBER(E23)),0,MIN(8,E23)),IF(NOT(ISNUMBER(F23)),0,MIN(8,F23)),IF(NOT(ISNUMBER(G23)),0,MIN(8,G23)),IF(NOT(ISNUMBER(H23)),0,MIN(8,H23)),IF(NOT(ISNUMBER(I23)),0,MIN(8,I23)),IF(NOT(ISNUMBER(J23)),0,MIN(8,J23)))
The code in column "L" is:
=SUM(IF(AND(ISNUMBER(D23),D23>8),IF(D23>11,3,SUM(D23-8)),0),IF(AND(ISNUMBER(E23),E23>8),IF(E23>11,3,SUM(E23-8)),0),IF(AND(ISNUMBER(F23),F23>8),IF(F23>11,3,SUM(F23-8)),0),IF(AND(ISNUMBER(G23),G23>8),IF(G23>11,3,SUM(G23-8)),0),IF(AND(ISNUMBER(H23),H23>8),IF(H23>11,3,SUM(H23-8)),0),IF(AND(ISNUMBER(I23),I23>8),IF(I23>11,3,SUM(I23-8)),0),IF(AND(ISNUMBER(J23),J23>8),IF(J23>11,3,SUM(J23-8)),0))
The code in column "M" is:
=SUM(IF(AND(ISNUMBER(D23),D23>11),SUM(D23-11),0),IF(AND(ISNUMBER(E23),E23>11),SUM(E23-11),0),IF(AND(ISNUMBER(F23),F23>11),SUM(F23-11),0),IF(AND(ISNUMBER(G23),G23>11),SUM(G23-11),0),IF(AND(ISNUMBER(H23),H23>11),SUM(H23-11),0),IF(AND(ISNUMBER(I23),I23>11),SUM(I23-11),0),IF(AND(ISNUMBER(J23),J23>11),SUM(J23-11),0))
Can I get this result in a more simplified way?
Thanks Craig