+ Reply to Thread
Results 1 to 3 of 3

Excel Workday function to exclude non business hours

  1. #1
    Registered User
    Join Date
    02-04-2016
    Location
    Leeds
    MS-Off Ver
    2013
    Posts
    2

    Excel Workday function to exclude non business hours

    Hey,

    My formula below calculates the Due Date depending on a VLookup value (let's say 1 day) and excludes Weekends and Bank Holidays. I need your advise on how to exclude non business hours from the Due Date calculation.

    Please Login or Register  to view this content.
    Business hours are 08:30 - 17:00.

    So if an order comes today at 16/08/2016 23:30 I need the formula to change the @Received date and time to 17/08/2016 08:30 and then my formula would work well and would add date as per lookup value, let's say 1 day, and the result would be 18/08/2016 08:30 (24 hours).
    Or if and order comes today at 16/08/2016 08:01 the @Received date and time would need changing to 16/08/2016 08:30.

    Thanks a lot,
    Sele
    Last edited by Sele; 08-16-2016 at 10:38 AM.

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Excel Workday function to exclude non business hours

    Hi -

    You could use the following formula:

    =IF(TIMEVALUE(TEXT(J14,"hh:mm"))<K12,DATEVALUE(TEXT(J14,"mm/dd/yyyy"))+K12,IF(TIMEVALUE(TEXT(J14,"hh:mm"))>L12,DATEVALUE(TEXT(J14,"mm/dd/yyyy"))+1+K12,"-"))

    This assumes your entered date is in J14, your starting business hours (8:30 AM) is in K12, and your ending business hours (17:00 PM) is in L12. If an order comes in at 8:01, on 8/16/16 (Sorry, I get confused if I work in European dates so you will have to change the formats in the formula), then it sets the date and time to 8/16/16 8:30 AM. If an order comes in after 17:00, it sets the date and time to 8/17/16 8:30 AM.

    Hope this helps!
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    02-04-2016
    Location
    Leeds
    MS-Off Ver
    2013
    Posts
    2

    Re: Excel Workday function to exclude non business hours

    Thanks loginjmor, worked fine

+ 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. WORKDAY Function to Include Hours
    By _mk_ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2016, 11:38 AM
  2. [SOLVED] Adding hours to start time - Business hours/holidays/weekends
    By Thunderer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2014, 01:09 PM
  3. Replies: 1
    Last Post: 03-03-2014, 02:43 AM
  4. Workday.INTL or Workday function issue
    By junoon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 03:14 PM
  5. Replies: 1
    Last Post: 11-29-2011, 12:19 AM
  6. Replies: 2
    Last Post: 07-07-2011, 06:26 AM
  7. Replies: 0
    Last Post: 04-07-2011, 01:46 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