+ Reply to Thread
Results 1 to 8 of 8

Return date for the next coming weekday

  1. #1
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Return date for the next coming weekday

    Hi,

    I need to return the next coming weekday as from todays date.
    (The so called Todays dates were simulated in cells B1, F1, J1).

    The formula, I've got, returns Todays date instead of 7 days ahead.
    (See attached Workbook)

    Thanks, Elm
    Attached Files Attached Files
    Last edited by ElmerS; 05-24-2010 at 10:26 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Return date for the next comming weekday

    Elmer, I'm not quite clear why B6 should be 30/5 when B5 is already 30/5

    Have a look at the Workday() function. In Excel 2003 you need to install the Analysis Toolpak. In Excel 2007 it's native.
    Last edited by teylyn; 05-24-2010 at 03:49 AM.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: Return date for the next comming weekday

    Try change in your formula 7 with 8:

    =MOD(7+(E5-WEEKDAY(F$1));8)+F$1
    Never use Merged Cells in Excel

  4. #4
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Return date for the next comming weekday

    Thanks, teylyn:
    It is my typo. It should read: "B2 should return 31/5"
    As far as I understand Workday() function relates to weekends of Sat-Sun. and I'm looking for a global formula which can be used also when Fri-Sat. are the weekends.

    Thanks, zbor:
    If Today is Sat, 21/5, your suggested formula returns, for day 7, 21/05 instead of: 29/5.

    Elm

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Return date for the next comming weekday

    Perhaps

    B5: =B$1+7-MOD(WEEKDAY(B$1)-A5;7)
    applied to all cells as appropriate

  6. #6
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Return date for the next comming weekday

    Instead of perhaps I would say: "Exactly" !

    Thanks.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,726

    Re: Return date for the next comming weekday

    you can eliminate MOD......

    =B$1+8-WEEKDAY(B$1-A5+1)

  8. #8
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Re: Return date for the next coming weekday

    Thank you
    .

+ 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