+ Reply to Thread
Results 1 to 5 of 5

Computing the date of the next occurring specific weekday

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Myrtle Beach, SC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Computing the date of the next occurring specific weekday

    My spreadsheet opens. Cell A1 determines what today is, formatted as "weekday, day month year" (e.g., "Tuesday, 18 February 2014").

    I have another cell in which I typically enter the date for the coming Friday. Instead of updating this field once each week, I'd like to calculate the date for the next coming Friday based off the value in cell A1 (to be concise, if "today" happens to be a Friday, then it would calculate the date of next Friday). (Continuing the example above, the coming Friday would be computed as 2/21/2014. If I open the spreadsheet on 2/21, it would calculate 2/28.)

    Does anyone know what formula or step(s) to follow to render this value automatically?

    Thank you.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Computing the date of the next occurring specific weekday

    Like this...

    =A1+CHOOSE(WEEKDAY(A1),5,4,3,2,1,7,6)
    Last edited by Tony Valko; 02-18-2014 at 10:46 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Computing the date of the next occurring specific weekday

    try this
    = A1+8-WEEKDAY(A1,15)

  4. #4
    Registered User
    Join Date
    02-18-2014
    Location
    Myrtle Beach, SC
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Computing the date of the next occurring specific weekday

    Thank you, either of these solutions works perfectly.
    Last edited by vabki; 02-18-2014 at 11:15 PM.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Computing the date of the next occurring specific weekday

    We determine the weekday number of the date:

    WEEKDAY(A1)

    Then add the matching sequence number to the date.

    If the weekday is:

    1 = Sun, add 5 days to the date
    2 = Mon, add 4 days to the date
    3 = Tue, add 3 days to the date
    4 = Wed, add 2 days to the date
    5 = Thu, add 1 day to the date
    6 = Fri, add 7 days to the date
    7 = Sat, add 6 days to the date

+ 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. Specific Weekday within date range
    By nicksmomma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-29-2013, 04:05 PM
  2. Replies: 5
    Last Post: 10-17-2013, 08:03 PM
  3. [SOLVED] Need help w/formula to find to the next weekday (Tuesday) after 7 years from specific date
    By sfmauldin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-04-2012, 08:17 PM
  4. [SOLVED] count number occurring within specific date range
    By Biff in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2006, 01:40 PM
  5. [SOLVED] count number occurring within specific date range
    By Ducky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2006, 01:35 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