Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
znaya
 
Posts: n/a
Default comparing time intervals


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
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
Hot key for time? Dave in Des Moines New Users to Excel 2 March 24th 06 04:31 PM
Hot key for time? Dave in Des Moines Excel Worksheet Functions 2 March 24th 06 04:15 PM
Hot key for time? Dave in Des Moines Excel Discussion (Misc queries) 1 March 24th 06 03:46 PM
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
time sheet to calculate 2 different columns John Sullivan Excel Worksheet Functions 1 October 21st 05 06:48 AM


All times are GMT +1. The time now is 09:33 AM.

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"