+ Reply to Thread
Results 1 to 3 of 3

Need for formula to calculate overlapping time intervals of specific categories

  1. #1
    Registered User
    Join Date
    11-12-2022
    Location
    Finland
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    1

    Need for formula to calculate overlapping time intervals of specific categories

    Hi all,

    I am trying to do analysis of my data for academic research, but unable to obtain the data I want.

    I have excel data of a 1) participant 2) who/what they are looking at 3) start time (video time) 4) end time (in video time) and 5) the duration (end time minus start time).

    I have three participants in total in this group (identified as Pink, Green, and Yellow), and I am trying to calculate when they are looking at each other, and also when they are looking at the same thing.

    The problem is that each participant has different time intervals, so I cant just stack them all and see what overlaps.

    I tried messing around with the =sumproducts function to find overlapping times, but I would get a gazillion overlaps indicated, and it wouldnt show me which ones overlap exactly. Now, I am thinking that the way I have my data might be hindering me, but I am not sure how to transpose (I think) the data to fit my needs.

    I have curated a small example worksheet of the data, I would be very happy if someone could help me find the right formula, thank you!Example data.xlsx
    Last edited by rid1whitehead; 11-12-2022 at 07:21 AM. Reason: Changing title

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,142

    Re: Need for formula to calculate overlapping time intervals of specific categories

    Is there any chance that instead of giving 168 rows+ of data for each person (for the 28 minutes) that you could cut that down to something more reasonable for us to work with.. like 5 minutes?

    And... is there any chance you can provide some manually calculated results so that we can better understand the type of results you want calculated with formulas?

    What i mean is that do you want the time that pink is looking at yellow at the same time that yellow is looking at pink? or do you just want the time that pink is looking at yellow, and separately the time that yellow is looking at pink? who knows? its your study, please give us enough (and not excessive) info to understand what you really want.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,541

    Re: Need for formula to calculate overlapping time intervals of specific categories

    How much of this question is algorithm development (developing the overall strategy that you will use for this analysis -- which is not really concerned with which programming language you plan to use) and how much is specific to Excel (you know the algorithm you want to use, but do not know how to implement that algorithm in Excel)? We are usually quite good at programming known algorithms into Excel once we understand the algorithm. I don't know if any of us have the expertise to develop the necessary algorithm from scratch. If you help us understand the algorithm(s) you want to use, we should be able to help program those into the spreadsheet.

    Are you required to use Excel for this, and are you required to program your own solution from scratch? I have to believe that you are not the first person to ever want to do this kind of analysis, so I wonder if someone has already got a suitable solution programmed. As a start, I put "overlapping time analysis" into my favorite search engine and, just within the first page of results, I found several promising references to different data analysis software packages performing some kind of overlapping time analysis. One of the results was specific to MSFT's Power Query/Power Bi that referenced a "Cartesian Product" algorithm that was being used to perform the analysis. My thought here is that, if you are not required to develop your own novel algorithm and program (whether spreadsheet or other language) from scratch, it might be worth the effort to see if there are existing, preprogrammed solutions for this.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Calculate Overlapping Leave for different categories
    By dineshiam in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2020, 10:19 PM
  2. Calculate Overlapping Leave for categories
    By dineshiam in forum Excel General
    Replies: 1
    Last Post: 07-15-2020, 09:06 AM
  3. [SOLVED] Calculate OVERTIME DURATION in specific time frame
    By Intalzky in forum Excel General
    Replies: 4
    Last Post: 02-10-2017, 05:18 PM
  4. Calculating overlapping time interval period during a certain duration
    By Mukund03 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2015, 01:08 PM
  5. [SOLVED] Formula: To calculate duration between two times, if duration is over 6hours subtract 30mi
    By MattBarnes7 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2013, 03:22 PM
  6. Macro for finding Overlapping duration of all the machines in service at a time
    By welsel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2012, 06:12 AM
  7. Show overlapping FY's from a Start Date and Duration
    By leaning in forum Excel General
    Replies: 7
    Last Post: 12-16-2010, 12:48 PM

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