Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Would anyone know an if statement for calculating pay rates? The rules a
For the first 20 Hours you get hourly wage * hours For the next 10 Hours you get hourly wage * (hours*1.5) For anything abouve 30 hours you get hourly wage * (hours*2) Thank you, Denise |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this.
IF(hours<=20,hours*wages,IF(AND(hours20,hours<=30 ),(hours*wages+(hours-20)*wages*1.5),(hours*wages+(hours-20)*wages*1.5+(hours-30)*2))) "Denise" wrote: Would anyone know an if statement for calculating pay rates? The rules a For the first 20 Hours you get hourly wage * hours For the next 10 Hours you get hourly wage * (hours*1.5) For anything abouve 30 hours you get hourly wage * (hours*2) Thank you, Denise |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
=hourly wage * MAX(hours, 1.5*hours-10,2*hours-25) For example, if hours is in A2, and hourly rate is in B2, the formula is =B2*MAX(A2,1.5*A2-10,2*A2-25) Regards, B. R. Ramachandran "Denise" wrote: Would anyone know an if statement for calculating pay rates? The rules a For the first 20 Hours you get hourly wage * hours For the next 10 Hours you get hourly wage * (hours*1.5) For anything abouve 30 hours you get hourly wage * (hours*2) Thank you, Denise |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Denise
This is a bit ugly but works. Hours worked in A1, Pay rate in A2 In B3 put: =IF(B130,(B1-30)*B2*2+10*1.5*B2+B2*20,IF(B120,(B1-20)*1.5*B2+B2*20,B1*B2)) HTH Michael "Denise" wrote: Would anyone know an if statement for calculating pay rates? The rules a For the first 20 Hours you get hourly wage * hours For the next 10 Hours you get hourly wage * (hours*1.5) For anything abouve 30 hours you get hourly wage * (hours*2) Thank you, Denise |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Denise
Oops !! Ithink I told you A1 and A2 for the input data, when it should have been B1 and B2 Sorry for the confusion. Michael "Denise" wrote: Would anyone know an if statement for calculating pay rates? The rules a For the first 20 Hours you get hourly wage * hours For the next 10 Hours you get hourly wage * (hours*1.5) For anything abouve 30 hours you get hourly wage * (hours*2) Thank you, Denise |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2 Nesting questions | Excel Worksheet Functions | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Hide formula | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) |