+ Reply to Thread
Results 1 to 15 of 15

How do you exclude weekends from date formulas?

  1. #1
    Registered User
    Join Date
    04-07-2014
    Location
    North Little Rock
    MS-Off Ver
    Excel 2010
    Posts
    17

    How do you exclude weekends from date formulas?

    I am trying to create a schedule that includes weekdays only. Is there a formula or set-up step to do that?

    Currently I have 3 columns:
    Start date Action date Finish date


    The Action date column has the formula: that cell (say C4) minus number of days that action requires (say 10), but when 10 days fall on a weekend, I need to change to the next work day instead.

    Does this make sense?
    Please help.

    Thank you,
    Dana

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: How do you exclude weekends from date formulas?

    try using the =WORKDAYS(a,b) function, where a is the start date and b is the number of workdays to add to it.

  3. #3
    Registered User
    Join Date
    04-07-2014
    Location
    North Little Rock
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: How do you exclude weekends from date formulas?

    =WORKDAYS(L5,4) gives me a result of #NAME?

    I know I'm not explainging what I'm trying to do very well. I have attached a sample sheet of what I am needing.

    Thank you for your help!
    DanaDate Formula Example.xlsx

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How do you exclude weekends from date formulas?

    I think it should be just WORKDAY..
    Not workdayS

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: How do you exclude weekends from date formulas?

    Yes, it was my mistake, use Jonmo1's suggestion.

  6. #6
    Registered User
    Join Date
    04-07-2014
    Location
    North Little Rock
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: How do you exclude weekends from date formulas?

    I guess I just don't understand how to use that function.

    Thanks anyway,
    Dana

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How do you exclude weekends from date formulas?

    F4 should be
    =WORKDAY(D4,J4)

  8. #8
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: How do you exclude weekends from date formulas?

    Put:
    =WORKDAY(D4,J4)
    in F4 and copy down.

  9. #9
    Registered User
    Join Date
    04-07-2014
    Location
    North Little Rock
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: How do you exclude weekends from date formulas?

    Ok, I get it. Thank you!
    One last question. Can it be done in reverse? If I have a finish date but need to subtract a number of workdays to find a start date?

    Thanks,
    Dana

  10. #10
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: How do you exclude weekends from date formulas?

    use a negative number in the workday function, i.e. = WORKDAY(D4,-J4)

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How do you exclude weekends from date formulas?

    Just make the 2nd argument (J4) a negative number..

  12. #12
    Registered User
    Join Date
    04-07-2014
    Location
    North Little Rock
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: How do you exclude weekends from date formulas?

    Awesome. Thank you so much for the help! I am very grateful!
    Dana
    Last edited by dajul73; 04-07-2014 at 11:35 AM. Reason: Solved

  13. #13
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How do you exclude weekends from date formulas?

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  14. #14
    Registered User
    Join Date
    04-07-2014
    Location
    North Little Rock
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: How do you exclude weekends from date formulas?

    I'm sorry, I couldn't find where to mark it solved at.
    Thank you!

  15. #15
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How do you exclude weekends from date formulas?

    Glad to help, thanks for the feedback.

+ 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. Exclude Weekends in formulas involving dates
    By rbruza in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-13-2019, 03:01 PM
  2. Date formulas that exclude weekends
    By bmarshall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2013, 02:19 PM
  3. Date caluclator to exclude weekends
    By singerbatfink in forum Excel General
    Replies: 5
    Last Post: 09-01-2011, 05:29 AM
  4. Exclude weekends in date counting
    By Ramzes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-10-2009, 08:57 AM
  5. Exclude weekends from date difference
    By nitinjoshi123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-08-2008, 06:55 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