+ Reply to Thread
Results 1 to 3 of 3

conditional formatting in calendar

  1. #1
    Forum Contributor
    Join Date
    03-09-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    235

    conditional formatting in calendar

    Hi guys,

    i need help with the attached spreadsheet. It's a monthly calendar that i have made but i have problems in conditional formatting in regarding of highlighting the holidays of the month. i.e on the attached spreadsheet on column AT-AU is the dates of all declared holiday, when i click refresh button, it will highlight the date based on the holidays lookup all employee will highlight downwards.

    hope anyone here can help me.


    thanks,
    Albert
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: conditional formatting in calendar

    Maybe you could use this for CF:

    =COUNTIF($AT$8:$AT$19;DATE(YEAR($B$3);MONTH($B$3);E$4))>0

    Also, in B3 is better to use TODAY() function for current date instead of NOW() because NOW() include current date and time while TODAY current date
    Attached Files Attached Files
    Last edited by zbor; 07-05-2010 at 02:14 AM.

  3. #3
    Registered User
    Join Date
    07-02-2010
    Location
    Leiden, Netherland
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: conditional formatting in calendar

    Hello,

    I think this might work out for you if you get rit of the range part.

    Marcel

    A B C D

    1 Vacation
    2 DATE DATE NAME DESCRIPTION
    3 31-Jul-2010 21-Aug-2010 Jeremy Summer vacation
    4 21-Aug-2010 21-Aug-2010 Sunny Free day
    5 21-Aug-2010 21-Aug-2010 Bart Free day
    6 27-Dec-2010 31-Dec-2010 Jeremy Christmas vacation
    7 29-Dec-2010 31-Dec-2010 Sunny Christmas vacation


    Named Ranges:

    VacationStart: A3-A99
    VacationEnd : B3-B99
    Names : C3-C99

    =IF(ISREF(INDEX(VacationEnd,MATCH(E8,VacationStart, 1),1)),IF(E8<=INDEX(VacationEnd,MATCH(E8,VacationStart, 1),1), TRUE, FALSE), FALSE)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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