Nested if

trebor1956

Board Regular
Joined
Jul 2, 2015
Messages
100
Office Version
  1. 2013
Platform
  1. Windows
Hi,
I am trying to write a formula that works out overtime rates. I have a staff member on 25 hours/wk. Until he has worked 37 hours all is plain time, after that it depends on the day, Mon-Fri time+qtr, sat, Sun and bank hols Time+half. The "day of the week" is in col "A", if its a Bank hol this is indicated with a "Y" in col "B", I record his o/t hours worked in Col "C", keep a cumulo total in col "D" and the pay rate is displayed in col "E". When the cumulo total is greater than 12 (37-25) the o/t rate needs to reflect what day it has been worked.
Seems quite straight forward when I write it down but I can't get the formula to work.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
i dont use a formula, instead I run a macro.
the sheet is sorted by person,then time/hrs

it scans the records, gets a person, sums the hrs for RegTime.
once that limit hits, starts summing OT.

a formula would be really complex.
 
Upvote 0
I can't see how this would work as any overtime over 12 hours could still be at differing rates. This is why based on a number of conditions I would like to work out the rate for each separate overtime event.
I hoped that by using an 'if' statement to catch the cumulo time worked when this reached 12 then further if statements would apply the o/t rate dependent on the day of the week and/or if it is a bank hol.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top