Results 1 to 7 of 7

Thread: How To Make A Calendar In Excel Using Formula

  1. #1
    Member
    Join Date
    Dec 2012
    Posts
    78
    Rep Power
    12

    How To Make A Calendar In Excel Using Formula

    Hi

    What formulas do i need/use to get the day numbers into the calender for each year/month.When the month and/or year are changed the days number changes

    Thanks

    Rich - excel 2010
    Attached Files Attached Files

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    I've modified your file a bit, to take out merged cells (try to avoid them for various reasons I'm not going over here).

    I've used this formula

    =IF(MONTH(DATEVALUE(F4&" "&D4))<>MONTH(DATEVALUE(F4&" "&D4)-(WEEKDAY(DATEVALUE(F4&" "&D4))-1)+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1),"",DATEVALUE(F4&" "&D4)-(WEEKDAY(DATEVALUE(F4&" "&D4))-1)+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1) as an array
    Attached Files Attached Files
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Member
    Join Date
    Dec 2012
    Posts
    78
    Rep Power
    12
    Thanks....looks great

    Is it possible to just display the number instead of the full date....eg..instead of the 10/5/2013 it just displays the day number 10 or 15 instead of 15/7/2013

    Thanks again

  4. #4
    Member
    Join Date
    Jun 2012
    Posts
    80
    Rep Power
    13
    Where's August?

  5. #5
    Member
    Join Date
    Dec 2012
    Posts
    78
    Rep Power
    12
    Hi

    I have now added the forgotten August month

    Thanks
    Attached Files Attached Files
    Last edited by rich_cirillo; 03-25-2013 at 07:06 AM.

  6. #6
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Either format the cells to just DD format, OR, use this

    =IF(MONTH(DATEVALUE(F4&" "&D4))<>MONTH(DATEVALUE(F4&" "&D4)-(WEEKDAY(DATEVALUE(F4&" "&D4))-1)+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1),"",DAY(DATEVALUE(F4&" "&D4)-(WEEKDAY(DATEVALUE(F4&" "&D4))-1)+{0;1;2;3;4;5}*7+{1,2,3,4,5,6,7}-1))
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  7. #7
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    12
    Hi Excelfox

    Thanks to you

    Works well

    Paul

Similar Threads

  1. Non-ActiveX Calendar / MonthView Control
    By Excel Fox in forum Excel Ribbon and Add-Ins
    Replies: 1
    Last Post: 07-18-2013, 09:14 AM
  2. Select Sheets For Specific Date By Clicking On A Calendar
    By peter renton in forum Excel Help
    Replies: 10
    Last Post: 05-17-2013, 01:57 PM
  3. Replies: 2
    Last Post: 05-13-2013, 12:03 AM
  4. How To Make A Custom VBA Function Available In All Workbooks
    By Safal Shrestha in forum Excel Help
    Replies: 2
    Last Post: 04-11-2013, 02:01 PM
  5. Excel Calendar
    By sanjeevi888 in forum Download Center
    Replies: 2
    Last Post: 08-14-2012, 08:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •