+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Help with Calculating Previous or Following Sunday's Date

  1. #1
    Registered User
    Join Date
    07-19-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    12

    Help with Calculating Previous or Following Sunday's Date

    I am trying to complete a report in MS Excel 2007 and I am needing a little bit of assistance with this situation. Our system has certain tables in the database where the Sunday's Date (Week Ending Date) is used instead of the week Date.

    I was wondering if there is a way to take any date and calculate the Date for the previous or following Sunday's Date.

    Thanks for any help/suggestions!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Help with Calculating Previous or Following Sunday's Date

    With a date in A1, this formula will give you the date of the previous Sunday:

    =A1-WEEKDAY(A1,2)

    even if A1 contains a Sunday date. This formula will give you the date of the next Sunday:

    =A1-WEEKDAY(A1,2)+7

    but if A1 contains a Sunday it returns that date.

    Hope this helps.

    Pete

+ 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