+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : How do I write a formula that excludes non-working days from the result?

  1. #1
    Registered User
    Join Date
    05-02-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    How do I write a formula that excludes non-working days from the result?

    Hi,

    I currently have a a very simple formula in place.

    In A1 I enter a date and in A2 the formula is =A1-2

    What I would like to know is, is there a way I can adapt this formula so that it will automatically give me the nearest working day that it a minimum of 2 working days from the date in A1?

    e.g If A1 is 7th May 2012 (Monday) then my current formula would mean A2 will be 5th May 2012 which is a Saturday. In this scenario, I would like it to automatically change this to Friday 4th May.

    I have had a go with the WORKDAY and NETWORKDAY functions but they seem to only calculate the number of working days between 2 dates?

    Any advice would be very much appreciated....

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: How do I write a formula that excludes non-working days from the result?

    Maybe: =A1-2-MAX(WEEKDAY(A1-2,2)-5,0)

  3. #3
    Registered User
    Join Date
    05-02-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How do I write a formula that excludes non-working days from the result?

    Thanks for the response Zbor. I have just tried the formula you suggested but when I enter it I get the following error message:

    "The value you entered is not valid. A user has restricted values that can be entered into this cell."

    I have the cell formatted to only accept a date. Do you think this could be causing the problem?

    I really appreciate your help...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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