Wikiposts
Search
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

Some Excel help

Thread Tools
 
Search this Thread
 
Old 7th Dec 2009, 08:41
  #1 (permalink)  
Thread Starter
 
Join Date: Oct 2002
Location: Dubai, UAE
Posts: 92
Likes: 0
Received 0 Likes on 0 Posts
Some Excel help

Hello all. - Need some additional brain power if someone could oblige I would be grateful

I am working on a spreadsheet that calculates how much to charge when an engineer has to work away from base. The engineers themself's get paid overtime when they work outside the hours of 08:00 to 16:30.

I would like the line on the sheet to look like


Depart time ....... Arrival time ........ Total cost...........

If the engineer departs at say 08:00 and the arrival time was 17:30 I would have 8.5 hours at 'Normal' time and 1 hours at overtime, which is at time and half

So the answer to the sum would be 8 * £60 (say) and 1 * £90 = £570

But how do I write the formula so that it 'knows' that any hours outside the boundries of 08:00 thru 16:30 are to be charged at 1.5 times the normal rate?

Thanks in advance

The Doc
Lear_doctor is offline  
Old 7th Dec 2009, 10:20
  #2 (permalink)  
bnt
 
Join Date: Feb 2007
Location: Dublin, Ireland. (No, I just live here.)
Posts: 733
Likes: 0
Received 6 Likes on 5 Posts
I wouldn't try to do it all in one formula; rather, I'd split the problem in to multiple cells. My way involves using formulas to split off the overtime hours. Rather than try to explain it, I threw an example together, here. (The IF formulas in C2 and D2 are because you don't want negative hours popping up.)
bnt is offline  
Old 7th Dec 2009, 11:32
  #3 (permalink)  
Thread Starter
 
Join Date: Oct 2002
Location: Dubai, UAE
Posts: 92
Likes: 0
Received 0 Likes on 0 Posts
That's perfect. Thanks for taking the time to help me out, I really appreciate it

regards


The Doc
Lear_doctor is offline  
Old 7th Dec 2009, 12:19
  #4 (permalink)  
bnt
 
Join Date: Feb 2007
Location: Dublin, Ireland. (No, I just live here.)
Posts: 733
Likes: 0
Received 6 Likes on 5 Posts
I should have mentioned that you can hide rows and columns in Excel, so you can spread a calculation out but still make it look neat and tidy. This helps especially when you come back to spreadsheet after a year, and find yourself wondering "what the hell does this formula do?"
bnt is offline  

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.