+ Reply to Thread
Results 1 to 4 of 4

Past and future date list

  1. #1
    Registered User
    Join Date
    01-06-2015
    Location
    Harrisburg, PA
    MS-Off Ver
    Excel
    Posts
    3

    Past and future date list

    This is my first post to your forum, I was wondering how to generate a list of ten dates: the past 5 Saturdays and the next 5 Saturdays, based on whatever the current date is. I appreciate any assistance you can provide.

  2. #2
    Registered User
    Join Date
    03-19-2013
    Location
    Cambridge, England
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Past and future date list

    Welcome to the forum.

    The today function will give today's date. The weekday function will return the day of the week, I will use weekday(today(),16) to return day of the week as numbers 1 (Saturday) to 7 (Friday).

    You should be able to combine these to get the last Saturday as follows:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    (this will give today's date if today is a Saturday)

    You can then add or subtract as many sets of 7 days as you like to find future or past Saturdays.

    I.e. Assuming above formula is in cell A1, next Saturday is calculated as:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope this helps (and works!)

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Past and future date list

    Hi Tom and welcome to the forum,

    Alex above gave a great answer except, why 16? See http://www.excelfunctions.net/Weekday-Function.html to see the reason.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-06-2015
    Location
    Harrisburg, PA
    MS-Off Ver
    Excel
    Posts
    3

    Re: Past and future date list

    The 16 worked, not sure why, but I am a happy camper! thanks!

+ 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] Generate future date based on past date and day
    By bd528 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-14-2012, 04:23 PM
  2. Calcualte Future or past date and....
    By rlcohen70 in forum Excel General
    Replies: 8
    Last Post: 08-14-2008, 01:16 AM
  3. Finding the closest future date from Today from a list of dates
    By maharg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2008, 09:45 AM
  4. How do I Calculate a future or past date in Excel?
    By MosMash in forum Excel General
    Replies: 2
    Last Post: 07-06-2005, 06:05 PM
  5. Highlight past & future events
    By rediproof in forum Excel General
    Replies: 4
    Last Post: 05-26-2005, 11:01 AM

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