+ Reply to Thread
Results 1 to 7 of 7

Weeks between 2nd Wednesdays of months

  1. #1
    Registered User
    Join Date
    10-16-2014
    Location
    Sunrise, Fl
    MS-Off Ver
    365
    Posts
    41

    Weeks between 2nd Wednesdays of months

    Is there a function that will facilitate finding the number of weeks between, say, the second Wednesday of this month and the second Wednesday of next month? Normally, there are about 52 weeks in a year. 52/12 = 4 1/3 weeks per month -- but it's not so simple, since months vary in length.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Weeks between 2nd Wednesdays of months

    If you have the dates between each of the Wednesdays, it'll be as simple as taking the difference between two dates and dividing it by 7.
    For example, 8th of April 2015 less 11th of March 2015 will give you 28 days, which equates to 4 weeks; 13th of May 2015 less 8th of April 2015 yields 35 days, which equates to 5 weeks.

    E.g.
    A1: 3/11/2015
    B1: 4/8/2015
    C1: =(B1-A1) / 7 = 4

    A2: 4/8/2015
    B2: 5/13/2015
    C2: =(B2-A2) / 7 = 5

  3. #3
    Registered User
    Join Date
    10-16-2014
    Location
    Sunrise, Fl
    MS-Off Ver
    365
    Posts
    41

    Re: Weeks between 2nd Wednesdays of months

    Thanks, quekbc. Actually, I don't know the dates. I want to display the date and number of weeks for the next Wednesday following the 2nd Wednesday of the current month. Sorry I didn't mention that.

    Another possible use would be to list the dates and number of weeks for a year.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Weeks between 2nd Wednesdays of months

    What do your mean by "and number of weeks"? The number of weeks between TODAY and the Wednesday after the second wednesday of the current month, or something else? Incidentally isn't "the Wednesday after the second wednesday of the current month" the same as "the 3rd Wednesday of the current month", or am I missing somehting here?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    10-16-2014
    Location
    Sunrise, Fl
    MS-Off Ver
    365
    Posts
    41

    Re: Weeks between 2nd Wednesdays of months

    Let me clarify:

    "Actually, I don't know the dates. I want to display the date and number of weeks for the next [2nd] Wednesday following the 2nd Wednesday of the current month."

  6. #6
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Weeks between 2nd Wednesdays of months

    Try this.

    In A1 (generate first 2nd wednesday of the year)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In A2 (find next month's 2nd wednesday) - copy down to row 12
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In B2 (weeks till next 2nd wednesday)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A
    B
    1 Wednesday, 14 January 2015
    2 Wednesday, 11 February 2015 4
    3 Wednesday, 11 March 2015 4
    4 Wednesday, 8 April 2015 4
    5 Wednesday, 13 May 2015 5
    6 Wednesday, 10 June 2015 4
    7 Wednesday, 8 July 2015 4
    8 Wednesday, 12 August 2015 5
    9 Wednesday, 9 September 2015 4
    10 Wednesday, 14 October 2015 5
    11 Wednesday, 11 November 2015 4
    12 Wednesday, 9 December 2015 4

  7. #7
    Registered User
    Join Date
    10-16-2014
    Location
    Sunrise, Fl
    MS-Off Ver
    365
    Posts
    41

    Re: Weeks between 2nd Wednesdays of months

    Quekbc, that is just what I needed. Thank you.

+ 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. Dividing monthly values into weeks automatically (some months have 5 weeks)
    By massimoo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2012, 03:20 AM
  2. No of weeks (Wednesdays)in month
    By GerryA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-14-2012, 02:51 AM
  3. Looping by weeks...by months
    By tmd2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2011, 10:45 PM
  4. Months and Weeks
    By Phenatic in forum Excel General
    Replies: 0
    Last Post: 12-14-2010, 03:14 PM
  5. Weeks into Months - Number
    By karobonas in forum Excel General
    Replies: 3
    Last Post: 12-01-2010, 07:17 AM
  6. Dividing months into weeks.
    By a94andwi in forum Excel General
    Replies: 0
    Last Post: 03-28-2007, 09:00 AM
  7. Summing months from weeks
    By eyebitter in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-20-2006, 05:58 PM
  8. WEEKS and MONTHS
    By scwilly in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-25-2005, 05:05 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