+ Reply to Thread
Results 1 to 8 of 8

Auto populate calendar week with starting Monday

  1. #1
    Registered User
    Join Date
    02-02-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Auto populate calendar week with starting Monday

    Although i have been a member for a while i have never posted a questions.

    This is my issue.
    I am trying to auto populate a calendar. The one posted by Pete_Uk work great except I would like them to display Monday as the 1st day instead of Sunday.

    The solution should be simple but i can't get it to work correctly.

    His ef89_scheduler has the year in Z5 and the month in Z4.
    The formula in B2 for Sunday is =IF(WEEKDAY(DATE($Z5,$Z4,1))>1,"",DATE($Z5,$Z4,1))
    and then for the weekdays formula such as =IF(B2<>"",B2+1,IF(WEEKDAY(DATE($Z5,$Z4,1))>2,"",DATE($Z5,$Z4,1)))
    and then for Saturday =IF(S2<>"",S2+1,DATE($Z5,$Z4,1))

    Can anyone help me with the modifications that i need to get this to work for me.
    your help would be very much appreciated

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,454

    Re: Auto populate calendar week with starting Monday

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: Auto populate calendar week with starting Monday

    Try

    Change your headings to Monday==>Sunday

    and change WEEKDAY function in all cells as shown (highiighted) below

    =IF(WEEKDAY(DATE($Z5,$Z4,1),2)>1,"",DATE($Z5,$Z4,1))

  4. #4
    Registered User
    Join Date
    02-02-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Auto populate calendar week with starting Monday

    thank you for your help, as you requested i have attached the file that i am working with, which was originally posted by Pete_uk on your site,

    this files which works great, except that I want the days of the week to be 'Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday'
    Pete_uk file uses Sunday as the start of the week
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: Auto populate calendar week with starting Monday

    Please follow instructions given in post #3.

    See attached
    Attached Files Attached Files
    Last edited by JohnTopley; 11-08-2017 at 08:04 AM.

  6. #6
    Registered User
    Join Date
    02-02-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Auto populate calendar week with starting Monday

    a big thank you John.

    after you replied yesterday i tried it and it didn't seem to work for me.
    but your file works great. Now i will compare to see where i went wrong.

    thank again

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: Auto populate calendar week with starting Monday

    You are welcome.

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

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,454

    Re: Auto populate calendar week with starting Monday

    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. Replies: 1
    Last Post: 05-14-2015, 01:14 PM
  2. Replies: 1
    Last Post: 07-10-2013, 01:41 PM
  3. [SOLVED] How to auto populate calendar
    By nancyching1711 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2012, 08:38 AM
  4. Calendar VBA auto filling week and month based on calendar entry.
    By perrymagic in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2011, 02:00 PM
  5. Calendar Auto Populate
    By bronkista in forum Excel General
    Replies: 0
    Last Post: 08-30-2011, 10:58 AM
  6. Replies: 0
    Last Post: 04-25-2011, 04:28 PM
  7. Simple? Formula for "for the week starting Monday May Xxth"
    By nmorse in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2006, 12:52 PM

Tags for this Thread

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