+ Reply to Thread
Results 1 to 7 of 7

Elapsed Workday Minutes Between 2 Date Timestamps

  1. #1
    Registered User
    Join Date
    08-03-2020
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2016
    Posts
    6

    Question Elapsed Workday Minutes Between 2 Date Timestamps

    I have an excel sheet with about 50,000 records where I need to find the number of minutes between two date timestamps but I need to exclude any minutes that occurred during the times we are not working.

    Our schedule is M-F 8:30am-5:30pm, Saturdays 8:30am-1:30pm We don't work Sundays or holidays.

    As an example
    Cell B2: [7/3/2020 2:16:21 PM]
    Cell C2: [7/6/2020 9:20:23 AM]

    (C2-B2)*24*60 = 4,024.03, however that includes all minutes. I need to exclude:
    - hours after 5:30pm on Friday
    - Saturday hours because July 4 was a holiday
    - Sunday, we're closed
    - hours before 8:30am on Monday because we hadn't opened yet

    The manually calculated answer for this one should be about 244 minutes.
    Attached Files Attached Files
    Last edited by bteague; 08-10-2020 at 12:12 PM. Reason: typo

  2. #2
    Registered User
    Join Date
    01-23-2020
    Location
    Spain
    MS-Off Ver
    2007
    Posts
    22

    Re: Elapsed Workday Minutes Between 2 Date Timestamps

    See if this works for you.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-23-2020
    Location
    Spain
    MS-Off Ver
    2007
    Posts
    22

    Re: Elapsed Workday Minutes Between 2 Date Timestamps

    Note that manually calculated answer you give is wrong.
    Just on Friday you got more than 3 hours from 2:16 to 5:30 so total cannot be 65 minutes.

  4. #4
    Registered User
    Join Date
    08-03-2020
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Elapsed Workday Minutes Between 2 Date Timestamps

    you're right. my error

  5. #5
    Registered User
    Join Date
    08-03-2020
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2016
    Posts
    6

    Re: Elapsed Workday Minutes Between 2 Date Timestamps

    First of all.. this awesome. Thank you. In your reply, the formula for working minutes on UniqueID 17028499623 = 576. When I manually calculate 3/2/2020 17:59:32-3/2/2020 18:05:42, it's just over 6. Is there some math I should be doing with the Working Minutes column?

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Elapsed Workday Minutes Between 2 Date Timestamps

    Quote Originally Posted by bteague View Post
    Our schedule is M-F 8:30am-5:30pm, Saturdays 8:30am-1:30pm We don't work Sundays or holidays.
    3/2/2020 17:59:32-3/2/2020 18:05:42
    No minute should be count after 17:30

    D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Custom format to [m]:ss
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-23-2020
    Location
    Spain
    MS-Off Ver
    2007
    Posts
    22

    Re: Elapsed Workday Minutes Between 2 Date Timestamps

    Change fórmula in I2 and below by:

    =MAX(0,MIN(C2-B2,C2-INT(C2)-0.354166666666667))*24*60

+ 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. Conversion of Days Hours Minutes elapsed into minutes
    By FPGooner in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 11-16-2018, 05:57 PM
  2. Elapsed tiime from Timestamps
    By AlphaBob in forum Excel General
    Replies: 2
    Last Post: 09-19-2018, 01:35 PM
  3. Converting Elapsed Time to Minutes
    By Danielle327 in forum Excel General
    Replies: 2
    Last Post: 09-16-2014, 02:39 AM
  4. WORKDAY doesn't copy over timestamps -- please help?
    By kolfinna in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-11-2013, 08:22 PM
  5. Removing timestamps that are X amount of minutes apart
    By Vlad717 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2013, 07:56 PM
  6. Dealing with timestamps and averages over 5 minutes
    By n_ant in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2013, 06:30 PM
  7. Copy range of cells every 5 minutes, put in a list and with timestamps
    By Test123Test in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2012, 07:54 AM

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