LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Time calculations


Greetings:

I need a bit of help. I think I may be making my life much more
complicated than I need. I have this data:


Code:
--------------------

Date TimeIn1 TimeOut1 TimeIn2 TimeOut2
01/01/2006 06:00 11:00 15:00 19:00
01/02/2006 20:00 02:00
01/03/2006 23:00 09:00
01/04/2006 06:00 19:00

--------------------

What I need to do is develop two functions. The first I have but it
seems more complex than it needs to be. It is to get the number of
hours worked. It got uglier than it should be in the "wraparound"
times such as is shown in 01/03/2006.

The second function is the one that's causing me fits. I need to get
the number of hours outside of the window 08:00 - 17:00. In
01/01/2006, I have a total of 9 hours. The hours 06:00-08:00 and
17:00-19:00 are outside of this window, so I would return 4.0 hours.
Again, the complexity that is just irritating me is the wraparound
hours.

It should not be as difficult as I am making it. I seem to have
started down a path and am stuck in the rut now. I can't break free to
get the obvious answer that I need.

Any help will be greatly appreciated!

Thanks!


--
cm_gmail
------------------------------------------------------------------------
cm_gmail's Profile: http://www.excelforum.com/member.php...o&userid=33451
View this thread: http://www.excelforum.com/showthread...hreadid=532590

 
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
Time calculations for Scheduled vs Actual Employee Time and Wages The Caterer Excel Discussion (Misc queries) 4 November 29th 09 11:51 PM
Time calculations for Scheduled Time vs. Actual Time Worked The Caterer Excel Discussion (Misc queries) 1 November 29th 09 08:08 AM
Time calculations for Scheduled vs Actual Employee Time and Wages The Caterer Excel Discussion (Misc queries) 2 November 29th 09 12:20 AM
Time difference calculations, daylight savings time, Excel Tim Excel Discussion (Misc queries) 1 December 28th 06 04:18 PM
convert time imported as text to time format for calculations batfish Excel Worksheet Functions 3 October 27th 05 11:24 PM


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