+ Reply to Thread
Results 1 to 10 of 10

Display a date for the following Sunday based off of current date

  1. #1
    Forum Contributor
    Join Date
    03-28-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    166

    Display a date for the following Sunday based off of current date

    Hello,

    I want to be able to display a date for the following Sunday based off of the current date, so if today is 12/19/2017 and the follow Sunday is 12/24/2017 this date 12/24/2017 will be inputted to a certain cell. Is there a formula or will VBA need to be used to accomplish this task? This is mind boggling!

    Thanks in advance for the assistance!

    LeapingLizard

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,778

    Re: Display a date for the following Sunday based off of current date

    What should happen if the current data IS a Sunday?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Display a date for the following Sunday based off of current date

    Like this?
    =INT(DATE(2017,12,19)/7)*7+8
    Teach me Excel VBA

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Display a date for the following Sunday based off of current date

    and of course you can refer the cell of the date instead of 2017,12,19

  5. #5
    Forum Contributor
    Join Date
    03-28-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    166

    Re: Display a date for the following Sunday based off of current date

    ALi,

    The answer to your question is yes! Thanks

  6. #6
    Forum Contributor
    Join Date
    03-28-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    166

    Re: Display a date for the following Sunday based off of current date

    Thanks ImranBhatti, so to input respective dates for the rest of the week into the spreadsheet so the dates are consistent with the calendar?
    Example : Currently the dates for the week are inputted off of me entering the Sunday's date into the spread sheet(a2). The formula I have used is (A2+1) to populate Monday's date and (A2+2) for Tuesday's date and so forth......
    Correct me if I am wrong, but I the way I have these dates inputting it will go to 31 days in the month all the time.

    Hopefully that makes sense. I want it to increment the next date based off the current calendar year.

    Thanks,

    LeapingLizard

  7. #7
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Display a date for the following Sunday based off of current date

    Not clear about the rest of the requirement.If you want to get the next days of the week you need to use A1(or the cell where the first formula resides)+1 And if you want to get every other Sunday then use =A1+7 . If I am not understood correctly then I would suggest you to please upload a sample workbook with a manual example results

  8. #8
    Forum Contributor
    Join Date
    03-28-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    166

    Re: Display a date for the following Sunday based off of current date

    Do not sweat it, I think I have it figured out. Thanks!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,778

    Re: Display a date for the following Sunday based off of current date

    Quote Originally Posted by LeapingLizard View Post
    ALi,

    The answer to your question is yes! Thanks
    How can the answer to, “What happens if ... ?” be “Yes”?

    For the sake of completeness, please explain how you solved this issue.

    Once you have done this, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

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

    Re: Display a date for the following Sunday based off of current date

    Quote Originally Posted by ImranBhatti View Post
    =INT(DATE(2017,12,19)/7)*7+8
    This works as long as you are using default 1900 date system - with 1904 date system it returns a Saturday

    This formula will return the following Sunday based on today's date - it works with both date systems

    =TODAY()+8-WEEKDAY(TODAY())

    On a Sunday that will return the date of the following Sunday
    Audere est facere

+ 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. Graph display date of saturday and sunday
    By goodboy in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-24-2015, 08:50 AM
  2. Highlight Rows Based on Date Range Using Static Date and Current Date
    By SaraStravers in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-23-2015, 07:38 PM
  3. Calculate next due date based on start date frequency and current date
    By ironoverload in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-09-2014, 07:08 AM
  4. Date picker don't display current date
    By Adventure_Harry in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2013, 11:45 AM
  5. [SOLVED] Display Fridays date (and message) if current date is Monday
    By Pierce Quality in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2013, 09:40 AM
  6. [SOLVED] Display Value Based on the current date.
    By DLC in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-08-2013, 04:46 AM
  7. Date Picker Control will not display Current Date
    By SP Brian in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-04-2011, 01:33 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