Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
William DeLeo
 
Posts: n/a
Default formula to determine time range overlap?


Greetings,

My brain hurts. I need some eloquent way of evaluating if one time
range (given in two cells as start and end time) overlaps with another,
and if so by how much time. I'll explain ...

I will have a time range as input, say start time = 2:37 and end time =
4:20. For each hour in the day (e.g. 1-2, 2-3, 3-4, etc) I need to
determine how much overlap exists. The answer that I need for the
period above would be:

time period 1-2 = 0%
time period 2-3 = (37/60)%
time period 3-4 = 100%
time period 4-6 = (20/60)%
time period 5-6 = 0%

All my ideas simply have too many embedded conditionals and I know
there is a better way. Can anyone offer a suggestion?

TIA
Billy


--
William DeLeo
------------------------------------------------------------------------
William DeLeo's Profile: http://www.excelforum.com/member.php...fo&userid=1256
View this thread: http://www.excelforum.com/showthread...hreadid=549150

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
FORMULA at Source range (in Data-validation-List) gives wrong re Eddy Stan Excel Worksheet Functions 6 March 17th 06 07:19 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
how to reference external refereces from a list FalconArt Excel Worksheet Functions 7 August 22nd 05 05:17 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Can a formula check for a certain value in a range? Lee IT Excel Discussion (Misc queries) 3 April 8th 05 07:36 AM


All times are GMT +1. The time now is 03:34 PM.

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"