+ Reply to Thread
Results 1 to 11 of 11

Formula to give next monday date from todays date

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Formula to give next monday date from todays date

    Hi I have a formula

    =AL260-WEEKDAY(AL260,2)+MATCH(AP260,{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"},0)

    The formula looks at the chosen start date (AL260), and then uses a displayed text day (AP20) to display the relvent date to the text day, this works fine however if the start date is say 08/08/14 (a Friday) when the formula detects a Monday (this copies down a range looking at the start date and the text days to produce dates on each line, the formula displays the Monday dates prior to start date, is there any way to alter this to make it display the dates ahead of the chosen start date?

    Thnaks in advance

    JD

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Formula to give next monday date from todays date

    Not sure what sheet layout you have.......
    But if you have start date in AL260 and you want to find the date with next Monday, try this.....

    Please Login or Register  to view this content.
    Does this help?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Formula to give next monday date from todays date

    Hi It needs to react to the AP260 text displayed day part, Monday, Tuesday Wed etc (only weekdays are displayed), your formula finds the monday after the friday date (08/08/14) but I need it to calculate each time a different text day is entered.

    Cheers

    JD

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula to give next monday date from todays date

    I went with:

    =LOOKUP(2,1/(WEEKDAY(AL260+{1;2;3;4;5;6;7},2)=1),(AL260+{1;2;3;4;5;6;7}))

    I'm not quite sure I follow why you're using both a Day of Week display, and a numerical date. Isn't the next Monday the same regardless?
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  5. #5
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Formula to give next monday date from todays date

    The days are dictated as default days for courses so any day say a monday course falls on the date shows the monday date for the first monday after the start date, I still need the formula to react to the text day and the start date.

    Cheers

    JD

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Formula to give next monday date from todays date

    May be this........
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Formula to give next monday date from todays date

    Cheers sktneer, that works a treat pal.

    JD

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Formula to give next monday date from todays date

    Glad to help you. Thanks for the feedback and rep.

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

    Re: Formula to give next monday date from todays date

    IF AL260 is A Wednesday and AP260 says "Wednesday" do you want the result to be the same as the date in AL260 or the following week? If it's the former try this

    =AL260+7-WEEKDAY(AL260-1-MATCH(AP260,TEXT({2,3,4,5,6},"dddd"),0))

    for the latter try

    =AL260+8-WEEKDAY(AL260-MATCH(AP260,TEXT({2,3,4,5,6},"dddd"),0))
    Audere est facere

  10. #10
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Formula to give next monday date from todays date

    Hi daddylonglges it would be the same date.

    Thanks for the reply I have implemented the suggestion made by sktneer, for some reason the thread hasn't come up as solved me IE crashed when I marked it a solved.

    Thnaks to everyone who posted.

    Cheers

    JD

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

    Re: Formula to give next monday date from todays date

    Quote Originally Posted by john dalton View Post
    ......it would be the same date.
    Hello John, sktneer's solution will give you the following week in that case - try my first suggestion

+ 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. [SOLVED] add years to todays date to give new date
    By jackal3300 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2013, 07:08 PM
  2. [SOLVED] Function/formula to compare and insert todays date or yesterdays date
    By TC922 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2013, 05:28 AM
  3. [SOLVED] Making a cell give the date the fist monday of the month
    By frankday in forum Excel General
    Replies: 10
    Last Post: 09-30-2012, 06:53 PM
  4. Replies: 2
    Last Post: 04-08-2012, 03:36 AM
  5. Replies: 3
    Last Post: 07-04-2005, 06:05 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