#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JT JT is offline
external usenet poster
 
Posts: 234
Default if greater than?

I need help with a function for total pay.
I have the person's hourly rate and overtime rate and number of hours. But
I want to find a simple function to calculate the total pay based on the
number of hours, ideally one that I can drag down to calculate a number of
totals.

So here's an example of the info that I have, but I want to find what the
total s/b with a formula.

If the hours are 2080 or under, I'd like it to multiply by the hourly rate.
If the hours are 2081 or more, then I'd like it to multiply 2080 by the
hourly rate and multiply the remaining hours by the overtime rate.
ID # Hourly RateOT Rate Hours Total S/B
1 $10 $15 2000 $20,000
2 $12 $18 3000 $41,520
3 $10 $15 2500 $27,100

Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default if greater than?

Try this in E2:

=IF(D2<=2080,D2*B2,2080*B2+(D2-2080)*C2)

Format as currency, and copy down as required.

Hope this helps.

Pete

On Apr 1, 12:53*am, JT wrote:
I need help with a function for total pay.
I have the person's hourly rate and overtime rate and number of hours. *But
I want to find a simple function to calculate the total pay based on the
number of hours, ideally one that I can drag down to calculate a number of
totals.

So here's an example of the info that I have, but I want to find what the
total s/b with a formula.

If the hours are 2080 or under, I'd like it to multiply by the hourly rate.. *
If the hours are 2081 or more, then I'd like it to multiply 2080 by the
hourly rate and multiply the remaining hours by the overtime rate. *
ID # * *Hourly RateOT Rate * * *Hours * Total S/B
1 * * * *$10 * * $15 * *2000 * * $20,000
2 * * * *$12 * * $18 * *3000 * * $41,520
3 * * * *$10 * * $15 * *2500 * * $27,100

Thanks for the help.


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
greater than but less than Aaron Excel Discussion (Misc queries) 5 April 21st 07 09:00 PM
I have Greater than, I need less than also rlee1999 Excel Worksheet Functions 3 December 12th 06 07:52 PM
IF greater than Zero dtruelove Excel Worksheet Functions 6 September 21st 06 03:06 PM
IF greater than...IF less than....====== BenJAMMIN Excel Discussion (Misc queries) 3 May 29th 05 03:41 PM
Greater then/less then campsoup1988 Excel Worksheet Functions 5 January 16th 05 07:27 PM


All times are GMT +1. The time now is 05:37 PM.

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

About Us

"It's about Microsoft Excel"