leoningold
New Member
- Joined
- May 19, 2011
- Messages
- 4
Hi,
I am working on a timesheet for work and have had a lot of success with trial and error, but I am now completely stuck.
I am using excel 2010 and what I am trying to achieve is the following:
With the current formula that I have worked out so far - if someone works less than 7.6 hours a day, no overtime is added to the overtime cell. I am happy with that.
=SUMIF(G21:P21,">7.6")-(COUNTIF(G21:P21,">7.6")*7.6)
The current formula will not stop doing a countif and a sum if they work more than 9.6 hours a day.
What I need the formula to do is:
When someone works more than 7.6 hours a day and less than or equal to 9.6 hours a day, then the time in hours is added up for the week and the total value of overtime should end up in the time and a half cell.
When someone does more than 9.6 hours a day, then any overtime past 9.6 hours a day ends up in the double time cell for the week.
=SUMIF(G21:P21,">9.6")-(COUNTIF(G21:P21,">9.6")*9.6)
This formula works ok.
If anyone can help fix my first formula that would really make my week. I am completely stuck.
If it means a completely different type of formula, and if it works, then I am more than happy to use it.
All the best,
Leon
I am working on a timesheet for work and have had a lot of success with trial and error, but I am now completely stuck.
I am using excel 2010 and what I am trying to achieve is the following:
With the current formula that I have worked out so far - if someone works less than 7.6 hours a day, no overtime is added to the overtime cell. I am happy with that.
=SUMIF(G21:P21,">7.6")-(COUNTIF(G21:P21,">7.6")*7.6)
The current formula will not stop doing a countif and a sum if they work more than 9.6 hours a day.
What I need the formula to do is:
When someone works more than 7.6 hours a day and less than or equal to 9.6 hours a day, then the time in hours is added up for the week and the total value of overtime should end up in the time and a half cell.
When someone does more than 9.6 hours a day, then any overtime past 9.6 hours a day ends up in the double time cell for the week.
=SUMIF(G21:P21,">9.6")-(COUNTIF(G21:P21,">9.6")*9.6)
This formula works ok.
If anyone can help fix my first formula that would really make my week. I am completely stuck.
If it means a completely different type of formula, and if it works, then I am more than happy to use it.
All the best,
Leon