+ Reply to Thread
Results 1 to 2 of 2

Advanced date find formula ( by day of week )

Hybrid View

Hatricke Advanced date find formula (... 09-29-2009, 05:20 PM
daddylonglegs Re: Advanced date find... 09-29-2009, 05:47 PM
  1. #1
    Registered User
    Join Date
    09-29-2009
    Location
    Missouri
    MS-Off Ver
    Excel 2002
    Posts
    9

    Cool Advanced date find formula ( by day of week )

    I need some help building the following formula.

    User would enter a date in a cell, and the related cell would return the first Wednesday at least 30 days away.

    I.E Date plus 30 days, and if that happens to be a Wed post it, if not post the date of the next Wed that will come up.

    I have it in my mind it would need to be something to the affect of Date + 30 convert using Weekday function then a series of either True/false or if/then statements to move forward until the Wed is reached, and then re-converted to date.

    Hope that explains it, and thanks in advance for any helpful advice anyone has.
    Last edited by Hatricke; 09-29-2009 at 06:56 PM. Reason: Solved

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,740

    Re: Advanced date find formula ( by day of week )

    If you want to find the first Wednesday on or after a date in A1 then the formula would be

    =A1+7-WEEKDAY(A1+3)

    In this case you want A1 to actually be A1+30 so the formula becomes

    =A1+30+7-WEEKDAY(A1+30+3)

    which you can simplify to

    =A1+37-WEEKDAY(A1+5)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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