+ Reply to Thread
Results 1 to 5 of 5

Convert Listing into calendar and fills specified colours

  1. #1
    Registered User
    Join Date
    04-18-2016
    Location
    Saskatchewan
    MS-Off Ver
    2011
    Posts
    10

    Convert Listing into calendar and fills specified colours

    Hi all,

    I joined for some help with a calendar I building.

    What I want:
    - perpetual calendar.
    - takes the dates from a listing and converts it into specified colours that would shade itself in the date on the perpetual calendar

    What I have done thus far:
    -perpetual calendar


    What I can't figure out:
    I am trying to use conditional formatting to get the colours to show up on the calendar by the date.
    I am also trying to get the date along with the colours to show up on the calendar and in the listing along the right side

    I have attached the worksheet

    Please someone help me with this or give me direction on how to get this accomplished

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Convert Listing into calendar and fills specified colours

    I have posted a number of calendar files to threads on the forum. My approach is to have a list of "activities" on one sheet (showing dates and description of the events), and then on another sheet generate the calendar which shows a number of possible activities for each day. Here's an example from a few years ago where the OP used conditional formatting to colour-code the activities by type:

    http://www.excelforum.com/excel-gene...entry-tab.html

    Hope this helps.

    Pete

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Convert Listing into calendar and fills specified colours

    I am assuming that this calendar is for a single person.

    Here is one way to do it using a "shadow calendar" to the left of the main calendar and conditional formatting. The shadow calendar has to be on the same page since conditional formatting doesn't like off-page references. I only did the mock up for January only.

    You can hide the columns containing the shadow calendar.

    To get conditional formatting to work, we need to fill in the events which means we have to look them up from the data source which means we need a date value in every cell.

    We calculate the date value using DATEVALUE($B$5 & " " & B9 & ", " & $B$2).

    Then we can do a VLOOKUP against the Data Source (which I converted to an Excel Table called Table_Events).

    VLOOKUP(DATEVALUE($B$5&" "&B9&", "&$B$2),Table_Events,3,FALSE)

    Most of the lookups will fail, so we wrap an IFERROR around the formula.

    IFERROR(VLOOKUP(DATEVALUE($B$5&" "&B9&", "&$B$2),Table_Events,3,FALSE),"")

    And finally, don’t even think about it if the corresponding cell in the calendar is blank.

    =IF(B9="","",IFERROR(VLOOKUP(DATEVALUE($B$5&" "&B9&", "&$B$2),Table_Events,3,FALSE),""))

    This formula puts either a blank in the cell in the shadow calendar or it puts an event if there is one.

    From there it is a matter of assigning a conditional on the main calendar based on the value in the corresponding cell in the shadow calendar. For example =AI9="Holiday" is formatted as light green.
    Attached Images Attached Images
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Registered User
    Join Date
    04-18-2016
    Location
    Saskatchewan
    MS-Off Ver
    2011
    Posts
    10

    Re: Convert Listing into calendar and fills specified colours

    thanks for the help Dflak. For the help i have received, I thought i would
    contribute back to the community and post a copy of the the result of that.
    I really wasn't talented enough to make the perpetual calendar work for me so there had to be seperate tabs for the years but at least the data is able to populate the calendar
    Attached Files Attached Files

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Convert Listing into calendar and fills specified colours

    You want a perpetual calendar? This isn't mine. I stole it from the person cited at the bottom of the calendar. I did modify it for my holidays. Enter the year in at the top and it should compute.
    Attached Files Attached Files

+ 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] Can't convert conditional "fills" to permanent and copy/paste ONLY filled cells
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-02-2015, 08:02 PM
  2. Colours in a Calendar Datepicker in a Floating VBA Userform
    By butterscotch in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-25-2015, 03:32 PM
  3. convert 360 calendar integers to normal calendar style dates
    By dmhg in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-03-2014, 08:17 PM
  4. one calendar fills data to different textboxes
    By NonSira in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2010, 12:15 PM
  5. Replies: 0
    Last Post: 03-27-2008, 04:36 PM
  6. Need to convert a chart list to a database listing.
    By sampson20 in forum Excel General
    Replies: 2
    Last Post: 07-25-2007, 08:48 AM
  7. Convert listing of events with dates to calendar - Pls help
    By jennifer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-28-2005, 02:06 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