+ Reply to Thread
Results 1 to 12 of 12

Always making the date the previous sunday.

Hybrid View

  1. #1
    Registered User
    Join Date
    10-25-2007
    Posts
    85

    Always making the date the previous sunday.

    Is there a way to make the date in a cell check the current date then fall back to the previous sunday unless today actually happens to be sunday? So for example it would look at today and make the date 12/9/2007 rather than 12/14/2007

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    =today()-weekday(today())+1
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    10-25-2007
    Posts
    85
    That works perfectly, thank you very much.

  4. #4
    Registered User
    Join Date
    12-17-2007
    Posts
    4
    How would I correct the formula so that the cell would always present the date as the next Sunday unless it is Sunday? I'm trying on my own but I'm a bit of a newbie...
    Last edited by Superhatch; 12-17-2007 at 11:18 AM.

  5. #5
    Registered User
    Join Date
    12-17-2007
    Posts
    4
    =TODAY()+WEEKDAY(TODAY())+4 works for this week, but I'm not sure why, or if it will work for next week, any correction or explanation would be greatly appreciated.

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Try this,

    =TODAY()+7-WEEKDAY(TODAY())+1
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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