+ Reply to Thread
Results 1 to 5 of 5

Formulas to help split a month into weeks (mon-sun)

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Formulas to help split a month into weeks (mon-sun)

    Hello,

    I am working on a monthly revenue tracker for our sales department and trying to automate a few calculations. In the attached workbook, I have a cell for them to input the first day of the month, C9, which will always be the 1st. I have have cell that captures EOMONTH, Q9. Most months are going to have 5 total "weeks" with either the first or last week being a partial week. For the life of me, I cant figure out how to split each month accurately in Row 9. For example, October 2018 starts with a Monday and Row 8 accurately records the day of the week. How do I make this work? The week always needs to start on MON and end on SUN UNLESS, it is the first or last week of the month....

    I hope this makes sense. Working with dates/serial numbers is tricky for me.....
    Attached Files Attached Files
    Last edited by nwb; 11-09-2018 at 12:58 PM.

  2. #2
    Forum Contributor
    Join Date
    01-09-2016
    Location
    Perth Western Australia
    MS-Off Ver
    Office 365
    Posts
    257

    Re: Formulas to help split a month into weeks (mon-sun)

    Hi

    I think I have a solution comprising 3 formula

    Firstly in cell E9 either +D9+"Number of days to Sunday" or Sundays Date
    Second in Cell F9 =E9+1
    Cell G9=F9+6
    Copy E9 and F9 across to remaining columns

    This should give you days as sought.

    I have attached a copy of the revised spreadsheet. Note the change in Row 3 .

    Cheers
    Attached Files Attached Files

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Formulas to help split a month into weeks (mon-sun)

    Try this

    C9 has the first day of the month

    in E9 use =F9-2

    In F9 use =C9+9-WEEKDAY(C9)

    Select E9:G9 and drag to P9

    See the file
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Formulas to help split a month into weeks (mon-sun)

    Jose,
    Thank you! Your response and solution almost solves my problem. The only issue is that for months that start on Sunday would have a first week that started and ended on the same day....

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Formulas to help split a month into weeks (mon-sun)

    Quote Originally Posted by nwb View Post
    Jose,
    ... The only issue is that for months that start on Sunday would have a first week that started and ended on the same day....
    If I understand what you want, it is not possible with 5 weeks
    See example

    09-01-2019 is a Sunday, then week_1 would end on 09-01-2019 and week_2 would start on 09-02-2019, week_3 on 09-09-2019, week_4 on 09/16/2019 and week_5 would start on 09-23-2019 and end on 28-09-2019, which is not the end of the month.

    So, day 09-30-2019 is a Monday and has no week to stay.

    As I propose, 01-01-2019 belongs to week_1 (a wide week and is the same as saying that week_1 starts on 02-09-2019). In fact, the days of the week are from Monday to Saturday, as you have defined.
    Last edited by José Augusto; 11-09-2018 at 06:23 PM.

+ 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. [SOLVED] Split years into weeks and get a date
    By ImranBhatti in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-18-2018, 11:39 AM
  2. [SOLVED] Get First day of the Month and every Monday of the succeeding weeks within that month
    By juan.doe in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-14-2018, 05:57 AM
  3. [SOLVED] Months to Split in Exact Weeks
    By pchugh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2018, 05:21 AM
  4. Need a way to split effort across weeks
    By Niks82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2017, 05:16 PM
  5. Split each month into weeks ie Jan 2014 Week 1/2/3/4
    By AnaM21 in forum Excel General
    Replies: 4
    Last Post: 11-14-2014, 01:07 AM
  6. [SOLVED] Split Month to Date data into Weeks
    By dksodhi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-15-2013, 10:59 PM
  7. Excel 2007 : Timeline month/days to month/weeks?
    By Bellaggio1770 in forum Excel General
    Replies: 12
    Last Post: 04-14-2012, 05:09 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