Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-22-2003, 08:30 PM   #1
Member (5 bit)
 
Vigilante_26's Avatar
 
Join Date: Jan 2003
Location: Boston, MA, USA
Posts: 17
Send a message via AIM to Vigilante_26
Microsoft Excel Coding Question

I'm looking for a line of code that can calculate the following:

For each hour worked over 40 (overtime) up to 60 is paid at 50% on top of their base pay (x1.5), while each hour worked over 60 is paid at 100% on top of their base pay (x2).

Any suggestions?

e.g., cells A2-A4 will be generic names, cells B2-B4 will be their base pay and cells C2-C4 will be the hours worked, cells D2-D4 will have said equation.
Vigilante_26 is offline   Reply With Quote
Old 01-22-2003, 08:44 PM   #2
Member (5 bit)
 
Vigilante_26's Avatar
 
Join Date: Jan 2003
Location: Boston, MA, USA
Posts: 17
Send a message via AIM to Vigilante_26
My best guess is something like this:

=B2*C2+IF(B2>40&<60*1.5,(B2>40&>60*2(B2-40)*F2,0)
Vigilante_26 is offline   Reply With Quote
Old 01-27-2003, 08:02 PM   #3
Member (7 bit)
 
Join Date: Feb 2001
Location: Maine
Posts: 69
Send a message via ICQ to Rooster
The simplest way to do this would be to use two more columns after the Hours Worked. One will store the amount of hours worked over 40, but under 60.
Formula in D2 will be "=IF(C2>40,IF(C2>60,20,C2-40),0)"
The E column will store the amount of hours worked over 60.
Formula in E will be "=IF(C2>60,C2-60,0)"
Finally, you can calculate the pay for the period in column F. Formula will be "=(B2*C2)+((B2*1.5)*D2)+(B2*2)*E2)"

Hopefully, that helped.

If this wasn't quite what you were asking for, let me know.
Rooster is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT -5. The time now is 12:28 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2