+ Reply to Thread
Results 1 to 8 of 8

Automate First Monday date for each week of that year

Hybrid View

  1. #1
    Registered User
    Join Date
    08-28-2017
    Location
    New Zealand
    MS-Off Ver
    2007
    Posts
    3

    Automate First Monday date for each week of that year

    Hello,
    I was wondering if anybody could help me please?
    I am currently working with a timetable spreadsheet that requires me to enter the First Monday date for each week of that year manually i was wondering if anyone could point me towards automating this so i just have to enter the first week of the term for that year and then it will automatically populates the other Mondays until the end of that year.
    Thank you in advance for any help.
    Best Regards,
    Alex
    Capture.JPG

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

    Re: Automate First Monday date for each week of that year

    Hi Alex,

    If you find the first Monday of any year, then all others will be 7, 14, 21, ... multiples of 7 added onto that first Monday.

    Does that help?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    08-28-2017
    Location
    New Zealand
    MS-Off Ver
    2007
    Posts
    3

    Re: Automate First Monday date for each week of that year

    Thanks MarvinP,
    I get that but how would that be created into a function i don't get so for example 26 February 2018 + 7 would give 33rd February... i need the cell to know that would be 5th March and so on...

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: Automate First Monday date for each week of that year

    Quote Originally Posted by Alex6175 View Post
    Thanks MarvinP,
    I get that but how would that be created into a function i don't get so for example 26 February 2018 + 7 would give 33rd February... i need the cell to know that would be 5th March and so on...
    If you aren't aware of it dates are numbers. Formatting is cosmetic. What Excel "sees" in 26 February 2018 is the five digit number 43157. Adding 7 returns 43164. Formatting for date presents 3/5/2018.

    Does this help?

    Edit BW types faster than I do.
    Dave

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: Automate First Monday date for each week of that year

    There are simpler ways to do this I am sure. They escape me at the moment.

    With the start date in A1 array enter this in A2 to get the first Monday.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    =LOOKUP(1E+306,IF(WEEKDAY(ROW(INDIRECT(A1&":"&A1+6)),1)=2,ROW(INDIRECT(A1&":"&A1+6))))
    Then in A3 enter this non array formula and fill down as far as desired.
    Formula: copy to clipboard
    =A2+7



    A
    1
    1/1/2018
    2
    1/1/2018
    3
    1/8/2018
    4
    1/15/2018
    5
    1/22/2018
    6
    1/29/2018
    7
    2/5/2018
    8
    2/12/2018
    9
    2/19/2018
    10
    2/26/2018
    11
    3/5/2018
    12
    3/12/2018
    13
    3/19/2018
    14
    3/26/2018
    15
    4/2/2018
    16
    4/9/2018
    17
    4/16/2018
    18
    4/23/2018
    19
    4/30/2018
    20
    5/7/2018
    21
    5/14/2018
    22
    5/21/2018
    23
    5/28/2018
    24
    6/4/2018
    25
    6/11/2018

  6. #6
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Automate First Monday date for each week of that year

    i think i should not a problem excel with auto change to 5th March if it time format.
    Excel assume 1 as 1/1/1900 and +1 day will equal to 2/1/1900

    you may try

    in B1 : 1-1-18
    in C1: =B1+7

    then format it in
    more number formats... > custum > d.m.yy

    or

    use TEXT function to do so

    B1:=TEXT(43101,"d.m.yy")
    C1 and remain =TEXT(43101+7*COLUMN(A1),"d.m.yy")

    and delete when you see the year of 2019
    Hope you can learn every time you visit here.

    If you still confuse on how it work, kindly ask or go to
    i) Formula - Formula (Ribbon) > Formula Auditing (Section) > Evaluate Formula > Evaluate; or
    ii) VBA/Code - Click F8 to see how it work step by step.

    It it take care of your question, Please:
    Mark tread as [Solved] [Thread Tools->Mark thread as Solved]
    ;and
    Click *Add Reputation to thank anyone solved your question.

  7. #7
    Registered User
    Join Date
    08-28-2017
    Location
    New Zealand
    MS-Off Ver
    2007
    Posts
    3

    Re: Automate First Monday date for each week of that year

    Thank you all for your help got it done... i forgot it records it in just numbers thanks MarvinP and FlameRetired.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: Automate First Monday date for each week of that year

    You're welcome. Thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Microsoft Excel : How can we get the date of the Monday of Week 44 of Year 2005?
    By Domenic in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  2. Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  3. Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  4. Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] Microsoft Excel : How can we get the date of the Monday of Week 44 of Year 2005?
    By datt350 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. Replies: 1
    Last Post: 06-09-2005, 11:05 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