+ Reply to Thread
Results 1 to 5 of 5

How many hours in total from multiple start & end times

  1. #1
    Registered User
    Join Date
    04-15-2017
    Location
    Colchester, England
    MS-Off Ver
    Mac 2011
    Posts
    54

    How many hours in total from multiple start & end times

    Hey,

    So I have a list of appointment start times and end times
    I am after a way to find the time from the start of the first appointment to end of the last (to work out how long the day was)

    I've attached an example worksheet

    Thanks

    Callum
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-15-2017
    Location
    Colchester, England
    MS-Off Ver
    Mac 2011
    Posts
    54

    Re: How many hours in total from multiple start & end times

    After playing around I can get it to work if I look at just the day with;

    {=(MAX(IF(DAY(B2:B9)=DAY(G4),B2:B9)))-(MIN(IF(DAY(A$2:A$9)=DAY(G4),A2:A9)))}

    but would be great if I could get it to work with the whole date

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How many hours in total from multiple start & end times

    =lookup(g4+0.9999,$b$2:$b$9)-index($a$2:$a$9,match(g4,index(int($a$2:$a$9),),))

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How many hours in total from multiple start & end times

    The following as an array that you appear to be familiar with gets rid of the day function

    =MAX(IF(A2:A9>G4,IF(A2:A9<G4+1,B2:B9,"")))-MIN(IF(A2:A9>G4,IF(A2:A9<G4+1,A2:A9,"")))

  5. #5
    Registered User
    Join Date
    04-15-2017
    Location
    Colchester, England
    MS-Off Ver
    Mac 2011
    Posts
    54

    Re: How many hours in total from multiple start & end times

    Perfect davsth, Thanks!

+ 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. Replies: 3
    Last Post: 04-23-2016, 01:42 AM
  2. How many hours from total hours fall between certain times
    By sobek in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2014, 10:51 AM
  3. Calculating total time for individual with multiple start/end times
    By schnizz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 02:45 PM
  4. Replies: 6
    Last Post: 01-30-2014, 06:58 AM
  5. [SOLVED] Work hours calculating start and end times
    By hiddenupnorth in forum Excel General
    Replies: 6
    Last Post: 04-20-2012, 01:54 PM
  6. Formula count of hours between start/finish times
    By robenson in forum Excel General
    Replies: 3
    Last Post: 02-14-2011, 07:01 AM

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