# 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.

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

Hi and welcome to the board

This site might get you on track

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

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

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

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...

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

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

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1