+ Reply to Thread
Results 1 to 9 of 9

Date Formula Help to auto populate next day of the week's date

  1. #1
    Registered User
    Join Date
    08-19-2010
    Location
    Arizona, USA
    MS-Off Ver
    Excel Mac 2011
    Posts
    59

    Thumbs up Date Formula Help to auto populate next day of the week's date

    Hello excel experts.

    I'm looking for a date formula to auto populate a cell with next Thursday's date. For example, If today is Thursday use today. If today is GT Thursday use next Thursday's date. This is what I have so far, which seems to work for today but not sure if it's correct: =TODAY()-WEEKDAY(TODAY(),3)+IF(WEEKDAY(TODAY(),3)>3,10,3)

    This code works to auto populate next Friday's date: =TODAY()-WEEKDAY(TODAY(),3)+IF(WEEKDAY(TODAY(),3)>4,11,4)

    I also need code for Next Saturday, Sunday, and Monday's dates so if someone can help translating this code into English so I can understand it better it would be greatly appreciated

    Thanks!!!

    s.
    Last edited by symaxf; 12-13-2010 at 04:18 PM.

  2. #2
    Registered User
    Join Date
    12-09-2010
    Location
    Essex, England
    MS-Off Ver
    Excel 2002
    Posts
    41

    Re: Date Formula Help to auto populate next day of the week's date

    Does this do it?

    =TODAY()-WEEKDAY(TODAY())+5+7

    where 5 is the weekday of Thursday (change to suit your purposes)

  3. #3
    Registered User
    Join Date
    12-09-2010
    Location
    Essex, England
    MS-Off Ver
    Excel 2002
    Posts
    41

    Re: Date Formula Help to auto populate next day of the week's date

    Nope - it doesn't! I needed the IF, like you had

  4. #4
    Registered User
    Join Date
    08-19-2010
    Location
    Arizona, USA
    MS-Off Ver
    Excel Mac 2011
    Posts
    59

    Re: Date Formula Help to auto populate next day of the week's date

    Thanks Martin. So what would be the complete formula?

  5. #5
    Registered User
    Join Date
    12-09-2010
    Location
    Essex, England
    MS-Off Ver
    Excel 2002
    Posts
    41

    Re: Date Formula Help to auto populate next day of the week's date

    I think this:

    =TODAY()-WEEKDAY(TODAY())+5+IF(WEEKDAY(TODAY())<6,0,7)

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

    Re: Date Formula Help to auto populate next day of the week's date

    Your first version was almost correct, Martin. Try

    =TODAY()+7-WEEKDAY(TODAY()-5)

    5 for Thursday, change as required - 1= Sun through to 7=Sat
    Audere est facere

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Date Formula Help to auto populate next day of the week's date

    The first formula was correct: (in the USA)
    Please Login or Register  to view this content.
    In ISO-countries:
    Please Login or Register  to view this content.



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

    Re: Date Formula Help to auto populate next day of the week's date

    Hello snb, perhaps I'm misunderstanding the requirement (what is "GT Thursday"?) but that won't give today's date if today is Thursday, which is what symaxf says he wants (it'll give the following Thursday)

    My suggested formula gives the current date on a Thursday, otherwise it gives the next Thursday after that date

  9. #9
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Date Formula Help to auto populate next day of the week's date

    I think you are right and I misread the requirements.
    I read it as: 'next week's thursday'.

+ 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