+ Reply to Thread
Results 1 to 8 of 8

Automatic calendar inserting dates

  1. #1
    Registered User
    Join Date
    12-11-2020
    Location
    Zurich
    MS-Off Ver
    Excel 2019
    Posts
    13

    Automatic calendar inserting dates

    Hello everyone

    I'm currently trying to set up a calendar for projects. I inserted an excel sheet with an approximate way it could look like. The goal would be to insert start and end dates and excel automatically colours the corresponding months. This design is not fixed, if you have other suggestions I'd be glad to take them!
    Attached Files Attached Files
    Last edited by faoiltiama; 12-24-2020 at 02:58 PM.

  2. #2
    Registered User
    Join Date
    08-09-2016
    Location
    Boston
    MS-Off Ver
    Office 365
    Posts
    37

    Re: Automatic calendar inserting dates

    Is this just for a visual display purpose or will you be needing other functionality?

    My first thought would be to use a pivot table and chart

  3. #3
    Registered User
    Join Date
    12-11-2020
    Location
    Zurich
    MS-Off Ver
    Excel 2019
    Posts
    13

    Re: Automatic calendar inserting dates

    Mainly visual, but dates should be changeable. Sadly, I have no experience in pivot tables, but I will browse through this forum a bit

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,552

    Re: Automatic calendar inserting dates

    Perhaps this will help:
    1. Unmerge cells in row 1, use horizontal alignment across selection (Ctrl + 1) instead. E1 = YEAR(E2), copy to Q1 and AC1.
    2. For row 2: E2 = MIN(A5:A11), F2:AN2 =EDATE(E2,1). Custom format "m"
    3. Insert column for Start Date
    4. Conditional formatting formula for E4:AN7 is: =AND(ISNUMBER($A4),$A4<=E$2,$B4>=E$2)
    5. Conditional formatting formula for E8:AN11 is: =AND(ISNUMBER($A8),$A8<=E$2,$B8>=E$2)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    12-11-2020
    Location
    Zurich
    MS-Off Ver
    Excel 2019
    Posts
    13

    Re: Automatic calendar inserting dates

    Wow, this is exactly what I was looking for! *.* Thank you for this Christmas gift! One more question, could I change it somehow, that if something starts on the 2nd of January, that January is still coloured?

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,552

    Re: Automatic calendar inserting dates

    Yes.
    Change the formula in cell E2 so that it reads: =EOMONTH(MIN(A5:A11),-1)+1
    Change the conditional formatting formula for E4:AN7 so that it reads: =AND(ISNUMBER($A4),$A4<=EOMONTH(E$2,0),$B4>=E$2)
    Change the conditional formatting formula for E8:AN11 so that it reads: =AND(ISNUMBER($A8),$A8<=EOMONTH(E$2,0),$B8>=E$2)
    Let us know if you have any questions.

  7. #7
    Registered User
    Join Date
    12-11-2020
    Location
    Zurich
    MS-Off Ver
    Excel 2019
    Posts
    13

    Re: Automatic calendar inserting dates

    Hi there, it's me again, hoping you'll see this question
    You really helped my project work, thank you! Now I'd like to add something:

    At the end of some finished tasks, I'd like to put a text clarification. Which text is stated in column D (I'll hide this part later)
    As this is not conditional formatting I don't know how to tell Excel to do so. ¨

    Attached I have the excel how I'd like it to look but without the needed function /macro/condition or whatever else is needed to solve this.

    Little extra question: can I also add Symbols at the end/beginning of the coloured bars? f.ex a rhombus?

    Best wishes

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,552

    Re: Automatic calendar inserting dates

    To add a rhombus (diamond) symbol paste the following into cell E5 then drag the fill handle over and then down to cell AN11:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    While those cells are still selected change the font to wingdings.
    I feel that adding the clarifications from column D is going to require VBA (if it can be done) of which I have very little knowledge.
    Let us know if you have any questions.

+ 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: 5
    Last Post: 01-02-2020, 07:45 AM
  2. Replies: 0
    Last Post: 01-31-2017, 12:45 PM
  3. Replies: 3
    Last Post: 07-29-2014, 01:20 PM
  4. Need Help with EXCEL Calendar Automatic Coloring when entering dates in another cell
    By staycool in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2014, 07:10 PM
  5. [SOLVED] inserting dates from a calendar
    By adygelber in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2012, 04:34 PM
  6. Calendar functions - linking work activities with formatted dates to calendar
    By SKSS in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2012, 06:38 PM
  7. Replies: 0
    Last Post: 03-27-2008, 04:36 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