#1   Report Post  
Posted to microsoft.public.excel.misc
Denise
 
Posts: n/a
Default Formula Help

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   Report Post  
Posted to microsoft.public.excel.misc
Evad
 
Posts: n/a
Default Formula Help

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   Report Post  
Posted to microsoft.public.excel.misc
B. R.Ramachandran
 
Posts: n/a
Default Formula Help

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   Report Post  
Posted to microsoft.public.excel.misc
Michael M
 
Posts: n/a
Default Formula Help

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   Report Post  
Posted to microsoft.public.excel.misc
Michael M
 
Posts: n/a
Default Formula Help

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 09:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"