+ Reply to Thread
Results 1 to 4 of 4

trying to calculate the # of hours for an SLA hours that excludes hours closed

  1. #1
    Registered User
    Join Date
    05-22-2020
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    2

    trying to calculate the # of hours for an SLA hours that excludes hours closed

    trying to calculate the # of hours for an SLA hours that excludes hours closed
    So if an order comes into the system during closed hours of 9:00 pm and 5:00 am how long did it really take the store to start the order.
    Example
    The start time to work orders is 5:00 am the end time is 9:00 pm or 21:00 hrs
    The order came in at Feb 10, 2020 3:40:30 PM
    The worker started the order Feb 11, 2020 7:38:12 AM
    so how would you write the formula to say it took x number of hours from the time the order came into the system until the worker started the order excluding the closed hours?

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    891

    Re: trying to calculate the # of hours for an SLA hours that excludes hours closed

    Hi eblue,

    Assuming you operate always from 5am to 9pm (7 days a week):

    Try: =((B9*24)-(A9*24))-(8*DAYS(B9,A9))

    A9 = The time the order arrived
    B9 = the date/time the worker starts to process the order
    The first part simply calculates the hours between the two dates/times. The second part calculates the days between the two dates and subtracts 8 hours per day, being the hours between 9pm and 5am when the store is closed.
    I have tested on a number of scenario and it seems to give the correct hours.
    Let me know if that works/does not work.

  3. #3
    Registered User
    Join Date
    05-22-2020
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    2

    Re: trying to calculate the # of hours for an SLA hours that excludes hours closed

    I'm sorry but that did not work I need the value in hours and the above formula when I try it using my real date it gives me a #value error.

  4. #4
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2016
    Posts
    891

    Re: trying to calculate the # of hours for an SLA hours that excludes hours closed

    Hi eblue,
    Formula works for me. See attached file. Maybe there are more variables to consider.
    Maybe you could upload a sample file with your date and expected outcome.
    Attached Files Attached Files

+ 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. [SOLVED] Formula to calculate hours worked w/lunch or w/o + OT column only total after 40 hours
    By blinhart in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-31-2023, 11:14 AM
  2. Replies: 2
    Last Post: 01-17-2014, 02:22 PM
  3. [SOLVED] Calculate hours with predefined Working Hours and Weekend Hours
    By garciapliz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-05-2013, 11:17 AM
  4. Replies: 7
    Last Post: 03-31-2013, 03:09 PM
  5. Replies: 2
    Last Post: 03-02-2013, 10:57 AM
  6. Replies: 4
    Last Post: 02-12-2013, 07:01 AM
  7. Replies: 2
    Last Post: 02-11-2013, 02:26 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