PC Review


Reply
Thread Tools Rate Thread

comparing time intervals

 
 
znaya
Guest
Posts: n/a
 
      8th May 2006

hello.

i need to compare time intervals to check, in hours, the amount of time
common to the intervals.

for example,

let's imagine i have these reference intervals:

1st reference: 23h00m - 07h00m (A1: "23:00" B1: "07:00")
2nd reference: 13h00m - 20h00m (A2: "13:00" B2: "20:00")

if the user input (G1:H1, for example) interval is 08h00 - 15h00 i need
it to return 2h (because the user input interval has 2h in common with
the second reference)

if the user input interval is 19h30 - 08h30 i need it to return 8h30
(8h from the first reference and 30m from the second)

if the user input intervals is 00h00 - 09h00 i need it to return 7h (7h
from the first reference interval)

i've searched the web but could not find a solution to suit my needs.
i think it may be possible to do it with tons of IF() functions and i
even started essaying it but maybe there is a simpler way to do it.

thanks.


--
znaya
------------------------------------------------------------------------
znaya's Profile: http://www.excelforum.com/member.php...o&userid=34242
View this thread: http://www.excelforum.com/showthread...hreadid=539941

 
Reply With Quote
 
 
 
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
time intervals =?Utf-8?B?Qm96bw==?= Microsoft Outlook Calendar 1 16th Feb 2006 01:25 AM
Comparing data intervals =?Utf-8?B?c21vdXRzYXQ=?= Microsoft Excel Discussion 4 8th Dec 2005 08:29 PM
Time Intervals ChrisM Microsoft Excel Worksheet Functions 1 7th Dec 2005 09:50 PM
Advice on comparing time intervals Ted Microsoft Access Form Coding 4 3rd Mar 2005 12:02 PM
Time intervals? ziggyg Microsoft Excel Worksheet Functions 0 16th Sep 2003 07:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 AM.