# Calculating overtime with 3 different pay rates

1. ## Calculating overtime with 3 different pay rates

I'm struggling with a formula to calculate 3 different rates of pay as part of a timesheet. That being rates of *1, *1.33 & *1.5.
If the employee works normal 8hrs then single rate *1 applies. After those 8 hours working then for a period of 2 hours *1.33 rate applies. After effectively the 8 hours + 2 hours then rate *1.5 applies.
I have tried the limited knowledge that I have to complete this problem but end up going round in circles.
Any ideas. I'm still using Ex'97.  Register To Reply

2. ## Re: Calculating overtime with 3 different pay rates

Hi and welcome to the board

This site might get you on track  Register To Reply

3. ## Re: Calculating overtime with 3 different pay rates

Or, if you have the number of hours worked in A1 this formula will do the trick

=SUMPRODUCT(--(A1>{0;8;10});A1-{0;8;10};{1;0,33;0,17})

Replace the ; with , if needed  Register To Reply

4. ## Re: Calculating overtime with 3 different pay rates

I must add that each rate gets displayed in its own cell.

I've looked at the example, that gives me something to look at but doesn't have the three individual cells for each rate  Register To Reply

5. ## Re: Calculating overtime with 3 different pay rates

I added a sample to show how to replace the hard coded array with an array of differential rates  Register To Reply

6. ## Re: Calculating overtime with 3 different pay rates

Per forum rules if you x-post provide links:

As you can see many members are active on numerous forums...  Register To Reply

7. ## Re: Calculating overtime with 3 different pay rates

Er, in fact you have two threads at MrE on this topic...  Register To Reply