Results 1 to 9 of 9

Average if time ranges overlap

Threaded View

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    toronto
    MS-Off Ver
    2013
    Posts
    5

    Average if time ranges overlap

    I'm at a loss. I've searched high and low for a solution.

    HTML Code: 
    I'm try to find out which units were active during the intervals set in d (d2:d3, d3:d4, etc) and then average out the size of those units in e.

    I can identify which ones are active with a variation of the following:

    =if(or(and(C1:c6>=D1, D2< B1:B6), "overlap", "no overlap")

    But I don't know how to use this to find the average of the units that match the criteria. I was something of something like this:

    =if(or(and(b1:b6>=d2, b1:b6<=d2),and(d1>=b1:b6,d1<=c1:c6),average(a1:a6),0)

    I know this is wrong. Any help would be appreciated. I have other conditions (5-6, but none with "and" or "or") to meet asides from this time range overlap criteria, but I think I can figure out how to implement these once I get pass this hurdle. Anything helps at this point.
    Last edited by fitzxlr8s; 11-24-2014 at 12:39 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Overlap between two time ranges
    By LondonJames in forum Excel General
    Replies: 11
    Last Post: 07-12-2019, 02:18 AM
  2. [SOLVED] determine total overlap time when there are gaps in overlap (4 date ranges)
    By miriambender in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-12-2014, 11:58 PM
  3. Calculate total hours if time ranges overlap
    By jl_stewart in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2013, 10:21 PM
  4. Replies: 5
    Last Post: 07-10-2012, 03:03 PM
  5. Average over different time ranges
    By nasalcherry in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2008, 04:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1