+ Reply to Thread
Results 1 to 5 of 5

Need a formula that picks up the date for Monday for each week from a given month and year

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    USA, North America
    MS-Off Ver
    Excel 2010
    Posts
    14

    Question Need a formula that picks up the date for Monday for each week from a given month and year

    Hello,

    I need a formula that picks up the date for Monday provided that you have a given month and year. The first date will be the 1st of January and in the event that this day falls on a day other than Monday, I still want the start of the following week to be Monday, so the first week of each year may have a different formula than all other weeks.

    2013, January falls on a Tuesday
    Cell E10: Week 1
    Cell E11: 1/1/13

    The following week will reflect the following date of 1/7/13; therefore the formula +7 will not work, but for the remaining weeks, the date prior +7 will work
    Cell F10: Week 2
    Cell F11: 1/7/13

    Cell G10: Week 3
    Cell G11: 1/14/13

    etc......

    I hope I have explained this thoroughly. Thank you in advance.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need a formula that picks up the date for Monday for each week from a given month and

    In Week2 (F11) dragged to the right
    =E11+7-WEEKDAY(E11)+2
    Does that work for you?

    EDIT: This works better
    =E11+7-WEEKDAY(E11,2)+1
    Last edited by ChemistB; 04-11-2013 at 12:40 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Need a formula that picks up the date for Monday for each week from a given month and

    =A1+MOD(8-WEEKDAY(A1,2),7)

    where A1 is a valid date

    then +7 for each

    Source: http://www.mrexcel.com/forum/excel-q...day-month.html
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need a formula that picks up the date for Monday for each week from a given month and

    Hi davisfs,

    See the attached workbook that will give the previous Monday for any data. See if it works for you.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    09-13-2012
    Location
    USA, North America
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Need a formula that picks up the date for Monday for each week from a given month and

    Wow, thanks, this did the trick!

+ 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