armophob
07-26-09, 05:07 PM
I tried posting in an Excel site and got blocked due to my 0 post count. So I return here to my favorite place to ask for advice.
Ok, I am building a time/schedule excel file to keep track of my hours and double check the math on our payroll at work. Long story short, they changed our payroll system and there are constant errors to keep up with.
Here are the parameters
1.sun-sat are divided into day and night hours giving 14 boxes B4 thru O4
2.if a box in row 6 is marked with a "y" below a specific day, then that indicates that day gets paid for "on call".
3.When the box in row 6 is blank then all of the following should be ignored
4. If that day has 0 hours when adding the night and day box, then the "on call" pay is 3.75 times the pay rate in box S5.
5. If that day has more than 0 hours when adding the day and night box, then the "on call" pay is 1.5 times the pay rate in box S5.
6.The sum of these days with these conditions is added in box Q6.
I have successfully accomplished the following formula.
My first question is can this be shortened or condensed?
=SUM((IF(AND((B6="y"),(B4+C4>0)),(S5*1.5),0))+(IF(AND((B6="y"),(B4+C4=0)),(S5*3.75),0))+(IF(AND((D6="y"),(D4+E4>0)),(S5*1.5),0))+(IF(AND((D6="y"),(D4+E4=0)),(S5*3.75),0))+(IF(AND((F6="y"),(F4+G4>0)),(S5*1.5),0))+(IF(AND((F6="y"),(F4+G4=0)),(S5*3.75),0))+(IF(AND((H6="y"),(H4+I4>0)),(S5*1.5),0))+(IF(AND((H6="y"),(H4+I4=0)),(S5*3.75),0))+(IF(AND((J6="y"),(J4+K4>0)),(S5*1.5),0))+(IF(AND((J6="y"),(J4+K4=0)),(S5*3.75),0))+(IF(AND((L6="y"),(L4+M4>0)),(S5*1.5),0))+(IF(AND((L6="y"),(L4+M4=0)),(S5*3.75),0))+(IF(AND((N6="y"),(N4+O4>0)),(S5*1.5),0))+(IF(AND((N6="y"),(N4+O4=0)),(S5*3.75),0)))
Now here are my roadblocks. I am trying to incorporate alpha characters into this.
1.If the box in row 6 is blank, but there is an alpha character in row 4 for each day, ignore the alpha character and continue adding the rest of the days with a "y" in row 6.
2. If there is an "A,B,or C" in either box of the day in row 4, then rule 4 above applies.
3. If there is a "D,E,or F" in either box of the day in row 4, then rule 5 above applies.
4.These are also summed up in box Q6.
Here is a screen shot to help. I changed my rate of pay for privacy. We would not be chatting about this if I made $5 an hour. :)
Ok, I am building a time/schedule excel file to keep track of my hours and double check the math on our payroll at work. Long story short, they changed our payroll system and there are constant errors to keep up with.
Here are the parameters
1.sun-sat are divided into day and night hours giving 14 boxes B4 thru O4
2.if a box in row 6 is marked with a "y" below a specific day, then that indicates that day gets paid for "on call".
3.When the box in row 6 is blank then all of the following should be ignored
4. If that day has 0 hours when adding the night and day box, then the "on call" pay is 3.75 times the pay rate in box S5.
5. If that day has more than 0 hours when adding the day and night box, then the "on call" pay is 1.5 times the pay rate in box S5.
6.The sum of these days with these conditions is added in box Q6.
I have successfully accomplished the following formula.
My first question is can this be shortened or condensed?
=SUM((IF(AND((B6="y"),(B4+C4>0)),(S5*1.5),0))+(IF(AND((B6="y"),(B4+C4=0)),(S5*3.75),0))+(IF(AND((D6="y"),(D4+E4>0)),(S5*1.5),0))+(IF(AND((D6="y"),(D4+E4=0)),(S5*3.75),0))+(IF(AND((F6="y"),(F4+G4>0)),(S5*1.5),0))+(IF(AND((F6="y"),(F4+G4=0)),(S5*3.75),0))+(IF(AND((H6="y"),(H4+I4>0)),(S5*1.5),0))+(IF(AND((H6="y"),(H4+I4=0)),(S5*3.75),0))+(IF(AND((J6="y"),(J4+K4>0)),(S5*1.5),0))+(IF(AND((J6="y"),(J4+K4=0)),(S5*3.75),0))+(IF(AND((L6="y"),(L4+M4>0)),(S5*1.5),0))+(IF(AND((L6="y"),(L4+M4=0)),(S5*3.75),0))+(IF(AND((N6="y"),(N4+O4>0)),(S5*1.5),0))+(IF(AND((N6="y"),(N4+O4=0)),(S5*3.75),0)))
Now here are my roadblocks. I am trying to incorporate alpha characters into this.
1.If the box in row 6 is blank, but there is an alpha character in row 4 for each day, ignore the alpha character and continue adding the rest of the days with a "y" in row 6.
2. If there is an "A,B,or C" in either box of the day in row 4, then rule 4 above applies.
3. If there is a "D,E,or F" in either box of the day in row 4, then rule 5 above applies.
4.These are also summed up in box Q6.
Here is a screen shot to help. I changed my rate of pay for privacy. We would not be chatting about this if I made $5 an hour. :)