+ Reply to Thread
Results 1 to 5 of 5

Formula(s) to detect and display first Wednesday of current month

  1. #1
    Registered User
    Join Date
    06-05-2011
    Location
    Maui, Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    2

    Formula(s) to detect and display first Wednesday of current month

    I need to detect and display the date of the first Wednesday of the current month in a cell.

    What formula(s) do I need to create to do this?

    Thanks in advance,

    Francis X.
    Last edited by FrancisXSlaughterry; 06-05-2011 at 09:01 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula(s) to detect and display first Wednesday of current month

    Try this as a general function for first Wednesday in given month.
    Please Login or Register  to view this content.
    And for the current month
    Please Login or Register  to view this content.
    Hope this helps.

    [EDIT]
    Accidentally left an unrelated macro in the workbook.
    Took the oppertunity to add DLLs' solution to this attachment.
    Attached Files Attached Files
    Last edited by Marcol; 06-05-2011 at 09:25 AM. Reason: Accidentally left an unrelated macro in the workbook
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    06-05-2011
    Location
    Maui, Hawaii
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Formula(s) to detect and display first Wednesday of current month

    That works perfectly. Thank you! I also appreciate that you posted the file. Excellent stuff.

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

    Re: Formula(s) to detect and display first Wednesday of current month

    given that you can get first day of the month with A1-DAY(A1)+1 you could also shorten that formula to this version

    =A1-DAY(A1)+8-WEEKDAY(A1-DAY(A1)+4)
    Audere est facere

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula(s) to detect and display first Wednesday of current month

    Happy to help.

    You might find this link and its' related links useful
    Worksheet Functions For Dates And Times

+ 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