+ Reply to Thread
Results 1 to 12 of 12

Formula return following Wednesday or Friday date.

  1. #1
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253

    Formula return following Wednesday or Friday date.

    Need a formula for cell J27 that returns the date of the following Wednesday from a date in cell J2 that's a Wed, Thurs, or Fri
    or
    return the date of the following Friday for a date in cell J2 that's Sat, Sun, Mon, or Tue.

    For example, when 05-29-08, a Thursday, is entered in cell F2, I need cell J27 to return the following Wednesday's date of 6-04-08.
    or
    For example, when 06-01-08, a Sunday, is entered in cell F2, I need cell J27 to return the following Friday's date of 06-06-08.

    Thank you for your help. mikeburg
    For example,

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =J2-WEEKDAY(J2,3)+IF(AND(WEEKDAY(J2,3)>=3,WEEKDAY(J2,2)<=5),9,11)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    Thank you for your response, but I can't get the formula to work.

    Any other ideas? mikeburg

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Does this work for you, Mike?

    =CHOOSE(WEEKDAY(J2),5,4,3,7,6,5,6)+J2

  5. #5
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    No. However, using either formula in cell J27 causes the date of 1/06/00 when it should be the following Friday, 6-06-08 (cell F2 has 06/01/08).

    I have both J2 & J27 formatted 03/14/01, if that means anything.

    Thanks for the help. Any other ideas? mikeburg

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    If J2 contains the date 1-Jun-08 then the formula I suggested will return 6-Jun-08, isn't that the correct result?

    Note: the formatting should make no difference as long as J2 contains a date

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Note:

    My formula also will return June 6, 08 if June 1, 08 appears in J2.

  8. #8
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    Yes, 6-Jun-08 is the correct result.

    However, my result is coming up as 06-Jan-00. I just can't understand why.

    mikeburg

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Are you sure the formula is referencing the correct cell. The formula I suggested;

    =CHOOSE(WEEKDAY(J2),5,4,3,7,6,5,6)+J2

    will show 6-Jan-00 only if J2 is blank

  10. #10
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253
    That's what's wrong. I had the date in the wrong cell. Thanks a million!

    Both formula's now seem to work.

    mikeburg

  11. #11
    Registered User
    Join Date
    06-30-2010
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Formula return following Wednesday or Friday date.

    Ok, so I tried that formula and it looks like it works fine however I am returning two days prior to that Friday as marked on the 2010 calendar??

    I am trying to have the return date be the following Friday (pay date).

    So M3 contains a date and I need N3 to return the Friday date that follows what ever date is in M3. Help?

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

    Re: Formula return following Wednesday or Friday date.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    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)

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