+ Reply to Thread
Results 1 to 3 of 3

Need Workday formula explained

  1. #1
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Unhappy Need Workday formula explained

    Hi,
    A few weeks ago I posted a thread requesting for a formula to return Mondays, except Holidays. Quoting it here:

    “I need a formula to return the date for next Monday over a range say A1:A52. So A1 is Monday, January 4, 2016 and A2 is Monday, January 11, 2016. However, I would like the formula to return the first working day after a holiday (specified in a range in another sheet "Holidays", A1:A26.
    If it is the next working day and not the Monday, I would like that cell to be highlighted to alert me that it is already a day after the expected Monday return. So a cell would be Tuesday, March 28, and highlighted in yellow.”

    This thread was successfully answered with the formula below.

    WORKDAY(DATE(2016,1,3)+((ROW()-1)*7),1,Holidays!$A$1:$A$26)

    I now need to change the day but can’t understand how the formula works. Also, each time I cut and paste the above formula to another sheet/row, the days/dates change.

    Can someone please explain how this formula works so that I can adjust to my needs without posting new threads.

    I’m using Excel 2007 and have basic skills so please detail your explanations as much as possible.
    My thanks,

    I’m uploading the solution file.
    SP

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Need Workday formula explained

    The Workday function works thus:-

    "=WORKDAY( start_date, days, [holidays] )"

    where the arguments are as follows:

    start_date - The initial date, from which to count the number of workdays.
    days - The number of workdays to add onto start_date.
    [holidays] - An optional argument, which specifies an array of dates (in addition to weekends) that are not to be counted as working days.

    Your formula is

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


    In Cell A1 you have this formula:-

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


    Which is your reference Date Sunday 3rd Jan and is copied unchanged to all the cells in column A and is therefore important.

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


    Adds 7 to your reference date for every row you go down column A

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


    Is your list of holidays that the Workday function will ignore.

    So back to your Formula

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


    This means

    Using Sunday 3rd Jan as a reference, adding 7 days each row, and adding one day. [ So Looking at Each Monday from 4th Jan 2016 ]
    And ignoring My Holidays Listed in
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Return the First Workday.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Need Workday formula explained

    Thank you Mehmetcik.
    I will work on/practice your explanation. It looks pretty clear so I think I will get it :D
    I do appreciate the time you put into it.
    SP

+ 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. Need a VLOOKUP formula explained
    By MILEHIEAGLE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2016, 12:49 PM
  2. [SOLVED] Array formula Explained For Everyone (this is a reference sheet)
    By frankzolf in forum The Water Cooler
    Replies: 15
    Last Post: 05-20-2014, 01:02 PM
  3. Array formula Explained For Everyone (this is a reference sheet)
    By frankzolf in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-17-2014, 09:56 PM
  4. ATPVBAEN.xla!Workday explained
    By leesider in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2014, 12:10 PM
  5. Please help how to get the Formula for below explained...!
    By mzaheer_abbas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-13-2014, 02:17 AM
  6. SUMIF formula explained
    By 92811 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2011, 05:07 PM
  7. need help with a v lookup formula, just need it to be explained
    By damagedbodies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2010, 01:08 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