+ Reply to Thread
Results 1 to 8 of 8

How to manually create own calendar

  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    How to manually create own calendar

    Hi,

    I'm not sure if this is possible, but I've been trying to create my own calendar.

    So attached is the spreadsheet and format I have created.

    Basically I just need a formula under the highlighted cells that will automatically feed in the dates for the month.

    So ex. If I like input the month I'm currently in under cell B4, the formulas on the highlighted cells should then be able to automatically populate by being able to identify as to which day the first day of the month would fall, and which day of the month it will end.

    Hope this makes sense and I hope this is really possible. Thank you! Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to manually create own calendar

    =sumproduct(--(month(date($a$2,$a$3,row($1:$31)))=$a$3),--(day(date($a$2,$a$3,row($1:$31)))=(column()-2+7*(ceiling(row()/$a$1,1)-1)-choose(weekday(date($a$2,$a$3,)),1,2,3,4,5,6,))),day(date($a$2,$a$3,row($1:$31))))
    Attached Files Attached Files

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,081

    Re: How to manually create own calendar

    I'm sure there must be a simpler way, but this seems to work
    Attached Files Attached Files

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to manually create own calendar


  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to manually create own calendar

    Shorter would be

    =$B$4-WEEKDAY($B$4)+COLUMNS($C5:C5)+ROW(C5)-5

    Formatted as d

    With a conditional format rule of

    =MONTH(C5)<>MONTH($B$4)

    used to format the font colour the same as the fill (background) colour, hiding the dates that don't fall into the required month.

    Calendar needs an extra week as well (try it with 1/12/2018 in B4)
    Attached Files Attached Files
    Last edited by jason.b75; 07-14-2018 at 03:15 PM.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: How to manually create own calendar

    Without the custom formatting, I think this will be about the simplest generic formula.

    In C5, then drag right and copy down as needed.

    =IFERROR(1/(1/TEXT(-WEEKDAY($B$4)+COLUMNS($C5:C5)+ROW(C5)-4,"[>"&DAY(EOMONTH($B$4,0))&"]\0;\0;0")),"")

    Note that only the rows for weeks 1, 5 and 6 need the full formula, although it will work correctly in the rows for weeks 2, 3 and 4, simply using =I5+1 in C12, then =C12+1 in D12, etc will suffice.

  7. #7
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Re: How to manually create own calendar

    Hi All,

    Thank you all for the responses and the effort. Appreciate it very much. Surprised to see that there's actually lot of ways to do this. I've tried you formulas and everything works perfectly, guess I'd just have to choose one that is more straightforward. Thank you all. Godbless.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,081

    Re: How to manually create own calendar

    Glad we could help & thanks for the feedback

+ 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] Create Drop Down List Based on Manually Entered Criteria
    By rcsibley in forum Excel General
    Replies: 10
    Last Post: 01-27-2017, 03:25 PM
  2. How to manually create Pivot Table?
    By Fritz1727 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2016, 01:13 PM
  3. [SOLVED] Macro to Create a Table After Manually Selecting an Output Range
    By clairexfy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2015, 11:10 AM
  4. Manually fill up/create array
    By Huugin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2013, 05:10 AM
  5. Cannot create a new worksheet manually or with a macro. ("That command cannot be used...)
    By 111StepsAhead in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2013, 04:26 PM
  6. [SOLVED] After filling in a cell -> create folder and hyperlink without manually running macros
    By LT1511 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-30-2012, 07:00 AM
  7. Manually create an excel readable table
    By zoltain in forum Excel General
    Replies: 2
    Last Post: 07-28-2011, 03:44 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