+ Reply to Thread
Results 1 to 4 of 4

Weedays only

  1. #1
    Registered User
    Join Date
    04-09-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Weedays only

    Hi!

    If I have the following:

    =DATE(YEAR(Y17),MONTH(17)+3,DAY(Y17))

    How can I have the cell only display weekdays. So in the event the above formula gives me a date that falls on Saturday or Sunday I need the cell to give me back the following Monday?

    Thanks.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Weedays only

    Hi there, give this a try

    =DATE(YEAR(Y17),MONTH(Y17)+3,DAY(Y17))+LOOKUP(WEEKDAY(DATE(YEAR(Y17),MONTH(Y17)+3,DAY(Y17))),{1,2,3,4,5,6,7},{1,0,0,0,0,0,2})
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Weedays only

    You could use EDATE function to add 3 months and then use WORKDAY to ensure the result is a weekday, like this

    =WORKDAY(EDATE(Y17,3)-1,1)
    Audere est facere

  4. #4
    Registered User
    Join Date
    04-09-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Weedays only

    Perfect! Thank you both. I used the Daddylonglegs for my specific need.

+ 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