+ Reply to Thread
Results 1 to 8 of 8

Displaying the Weeks in a Selected Month

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Displaying the Weeks in a Selected Month

    Hi I have a workbook that needs to display the relevent weeks in month, the dates would be the start and end dates of each wekk (monday to Friday) but also need to take into consideration, partial weeks i.e. only a wednesday, thursday and friday at the start of the month given where the first available date falss on.

    Please see the attached sheet for reference, I am looking to do this with as few formulas as possible please.

    It also needs to show a list of monday only dates for the selected month.

    Thanks in advance

    John Dalton
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,787

    Re: Displaying the Weeks in a Selected Month

    quite a lot of formulas used here
    to calculate the 1st of month
    to calculate the first friday
    then the same formula adding 3 or 7
    to calculate if in 5th week
    and the last day of month if in 5th week
    and calculate the days

    i have changed a few things
    1) the year and month dropdown - I have setup as actual dates
    so you need to enter as a date format for both and then formatted to display Year and Month ~(we could probably change to use text and convert to a date if required) - just first wanted to setout and see if that works for you

    then used various formulas to calculate the 1st of month - then first friday in month - in the first section for week1
    then simply adding 3 and 7 days
    in the 5th week test to see if there are 5 weeks and then show the start and end of for that week

    the days of the week are also calculated using a formula
    see if this works for you at all - what version of excel are you using
    see attached "week calculator"

    I have changed to use text for the dates B1 and B2 now
    so you just type 2014 and month March etc - see attached "week calculator text"
    Attached Files Attached Files
    Last edited by etaf; 02-18-2014 at 09:55 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Displaying the Weeks in a Selected Month

    That works very well, however I need the week one start date to display only working week days, excluding saturday and sunday.

    Using Excel 2010

    JD

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,787

    Re: Displaying the Weeks in a Selected Month

    so this displays first working day of the month - using text as input for dates

    BUT notice August as a friday is the 1st it calculate 8th as friday - I guess you do not want that - correct ?
    see attached V2

    I have changed so that if friday is the 1st for start week - then friday will be the 1st for end week - for week1
    see attached v3
    Attached Files Attached Files
    Last edited by etaf; 02-18-2014 at 10:48 AM.

  5. #5
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Displaying the Weeks in a Selected Month

    Thanks etaf fantastic mate.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,787

    Re: Displaying the Weeks in a Selected Month

    your welcome
    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

  7. #7
    Registered User
    Join Date
    08-10-2014
    Location
    london
    MS-Off Ver
    2003
    Posts
    1

    Re: Displaying the Weeks in a Selected Month

    Hi thanks great spread sheet. For your v3, how do I set the last day of the month to the same month? Do not want it to overflow to next month.

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,787

    Re: Displaying the Weeks in a Selected Month

    combatlan it may be worth starting a thread of your own and post the link to here
    so others may also see an answer

+ 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. Replies: 2
    Last Post: 01-30-2013, 03:16 AM
  2. fill a row with weeks of a particular month
    By roninn75 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2013, 09:30 AM
  3. No of weeks (Wednesdays)in month
    By GerryA in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-14-2012, 02:51 AM
  4. Excel 2007 : Timeline month/days to month/weeks?
    By Bellaggio1770 in forum Excel General
    Replies: 12
    Last Post: 04-14-2012, 05:09 PM
  5. Need help to separate month in weeks
    By bluejohn in forum Excel General
    Replies: 0
    Last Post: 01-14-2011, 03:57 AM

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