Results 1 to 3 of 3

Thread: Selective Highlighting Of Leaves Holiday In Calendar Through Conditional Format

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,401
    Rep Power
    10
    Here's a way of doing it using Conditional Format

    Create named ranges

    EmployeeList =OFFSET('Leave Dates'!$B$1,1,0,COUNTA('Leave Dates'!$B$2:$B$30),1)
    StartDate =OFFSET('Leave Dates'!$C$1,1,0,COUNTA('Leave Dates'!$B$2:$B$30),1)
    EndDate =OFFSET('Leave Dates'!$D$1,1,0,COUNTA('Leave Dates'!$B$2:$B$30),1)

    Create a validation list somewhere in the calendar sheet, say in AH11

    Create named range

    SelectedEmployee ='Leave Schedule'!$AH$11

    The select the entire calendar starting from B13 and use the formula section of conditional formatting with the following formula

    =(B13>=INDEX(StartDate,MATCH(SelectedEmployee,Empl oyeeList,0)))*(B13<=INDEX(EndDate,MATCH(SelectedEm ployee,EmployeeList,0)))

    Attached working file for reference....
    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

Similar Threads

  1. Replies: 21
    Last Post: 05-27-2013, 08:45 PM
  2. Red Green Amber Three Color Conditional Format
    By paul_pearson in forum Excel Help
    Replies: 1
    Last Post: 03-07-2013, 06:50 PM
  3. Custom Format Conditional With Square Bracket
    By Slotmachineguy in forum Excel Help
    Replies: 2
    Last Post: 11-09-2012, 11:42 PM
  4. Conditional Format Based On Percentage Variance
    By srizki in forum Excel Help
    Replies: 3
    Last Post: 10-09-2012, 03:28 AM
  5. Replies: 4
    Last Post: 07-27-2012, 08:43 AM

Posting Permissions

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