+ Reply to Thread
Results 1 to 3 of 3

Duration help required

Hybrid View

  1. #1
    Registered User
    Join Date
    10-04-2005
    Posts
    73

    Duration help required

    Hi

    I would like to calculate the duration of an event between 06:00 yesterday and 06:00 today. I know what date and time the event started and finished and have this information separated into columns (as per the attached sheet).

    I have used the following formula to get overall duration for the event:

    =SUM((end date+end time)-(start date+start time))*24

    My problem is that I would like to ignore any duration before 06:00 yesterday and after 06:00 today so I am only considering the time between the specified period. Based upon this the max duration I can have is 24 hours.

    Can someone help me with this as this is driving me crazy and confusing my brain!

    Thanks in advance

    Duration.xlsx

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Duration help required

    Maybe..

    =MAX(0,(MIN(K4+L4,TODAY()+TIME(6,0,0))-MAX(J4+I4,TODAY()-1+TIME(6,0,0)))*24)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    10-04-2005
    Posts
    73

    Re: Duration help required

    Hi Ace_XL

    Thanks for your suggestion. Unfortunately the formula does not return the value required.

    Thanks for trying.

+ 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. Help required in matching data in required format
    By pravindwd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-04-2013, 09:03 PM
  2. Help required in matching data in required format
    By pravindwd in forum Access Tables & Databases
    Replies: 1
    Last Post: 05-04-2013, 04:11 PM
  3. [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
  4. Duration
    By jonmsimon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2009, 03:40 PM
  5. Duration
    By citizens1stbank in forum Excel General
    Replies: 0
    Last Post: 07-15-2005, 01:23 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