#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Calculate Hours

I need a formula to calculate the number of hours a truck has been
parked. There is a format already setup in excel that I must use.
There are 4 fiels Date In, Time In, Date Out, Time Out that the
formula must use to calculate the hours. The other catch is that they
pay no more than 10 hours a day. So in this scenario they parked
9/20/08 at 8pm and stayed till 9/25 at 3am the total hours would be 47.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Calculate Hours

Try this

formatted as general or number


=(INT((Date_Out+Time_Out)-(Date_In+Time_In))*10)+(24*MOD(((Date_Out+Time_Out )-(Date_In+Time_In)),1))

will return 47

--


Regards,


Peo Sjoblom

wrote in message
...
I need a formula to calculate the number of hours a truck has been
parked. There is a format already setup in excel that I must use.
There are 4 fiels Date In, Time In, Date Out, Time Out that the
formula must use to calculate the hours. The other catch is that they
pay no more than 10 hours a day. So in this scenario they parked
9/20/08 at 8pm and stayed till 9/25 at 3am the total hours would be 47.



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
How do you calculate hours? chefd Excel Discussion (Misc queries) 2 February 29th 08 10:03 PM
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis Graham Excel Discussion (Misc queries) 2 January 28th 07 08:40 PM
calculate hours Caveman Excel Discussion (Misc queries) 1 May 29th 06 11:52 PM
How to calculate hours? cheryl Excel Worksheet Functions 6 August 2nd 05 08:20 AM
calculate hours Sunny Excel Discussion (Misc queries) 2 February 21st 05 05:51 PM


All times are GMT +1. The time now is 06:31 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"