+ Reply to Thread
Results 1 to 8 of 8

Conditional Format Calendar if Date Matches Range of Dates in Other Cells

  1. #1
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    2016
    Posts
    100

    Conditional Format Calendar if Date Matches Range of Dates in Other Cells

    Hi,

    So I have a calendar which already has 2 CF rules. It highlights days on a 5 - 5 - 2 - 2 basis and it then highlights non blank cells. Basically it's a shared custody calendar, it splits up the year 50/50 between me and my ex in bright colours so there's no confusion over who has the kids.

    I'm now trying to figure out how I can use further CF to highlight all the school holidays that my kids will be with me but I'm struggling to find someone who has done something similar in this forum or others.

    What I have is attached, any help someone could offer will be greatly appreciated.

    The range of dates is in the AK column to the right of the table. I've attached to make life easier.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    2016
    Posts
    100

    Re: Conditional Format Calendar if Date Matches Range of Dates in Other Cells

    It's a shame I can't give reputation for myself...

    Highlight month, conditional format, new rule, classic, use formula,

    =NOT(ISERROR(MATCH(AA25:AG30,$AK$14:$AK$39,0)))

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Conditional Format Calendar if Date Matches Range of Dates in Other Cells

    try
    =AND(COUNTIF($AK:$AK,C7)>0, C7<>"")
    and apply to the range
    =$C$7:$AG$30

    so you only need enter once for the entire sheet
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    2016
    Posts
    100

    Re: Conditional Format Calendar if Date Matches Range of Dates in Other Cells

    Quote Originally Posted by etaf View Post
    try
    =AND(COUNTIF($AK:$AK,C7)>0, C7<>"")
    and apply to the range
    =$C$7:$AG$30

    so you only need enter once for the entire sheet
    That would have been great but it didn't seem to work.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Conditional Format Calendar if Date Matches Range of Dates in Other Cells

    worked on my sample OK
    so can you load your sample, with the new condition in - so we can see what the difference maybe?

    did you make sure that the order was set to do this new condition first - use the arrow on the cond format box to change order and then use
    stop if true
    otherwise , the other conditions will overwrite the holidays - you have 2 conditions apply to the same cell

  6. #6
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Reading
    MS-Off Ver
    2016
    Posts
    100

    Re: Conditional Format Calendar if Date Matches Range of Dates in Other Cells

    Quote Originally Posted by etaf View Post
    worked on my sample OK
    so can you load your sample, with the new condition in - so we can see what the difference maybe?

    did you make sure that the order was set to do this new condition first - use the arrow on the cond format box to change order and then use
    stop if true
    otherwise , the other conditions will overwrite the holidays - you have 2 conditions apply to the same cell

    I had just figured out that I had the order wrong and came back here to apologise but you'd already responded. Works like a charm, thanks.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Conditional Format Calendar if Date Matches Range of Dates in Other Cells

    no need to apologise, i didn't make that clear in my first post
    glad it worked


    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Conditional Format Calendar if Date Matches Range of Dates in Other Cells

    no need to apologise, i didn't make that clear in my first post
    glad it worked


    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

+ 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: 9
    Last Post: 10-08-2015, 01:50 PM
  2. Conditional Formatting Cells with Dates Outside of Date Range
    By emalegria in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2013, 04:09 PM
  3. [SOLVED] A cell of Date matches with a range of DATES
    By soundworks999 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2013, 09:57 PM
  4. conditional format to ensure data range matches
    By tuizner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2010, 06:41 AM
  5. Conditional Format Dates in a Calender when Matches dates in a list
    By Lungfish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2009, 06:23 AM
  6. Counting conditional format cells in date range
    By moding blaine in forum Excel General
    Replies: 10
    Last Post: 05-01-2009, 02:51 PM
  7. [SOLVED] Conditional Format matching Dates,calendar
    By ufo_pilot in forum Excel General
    Replies: 3
    Last Post: 07-31-2006, 08:05 AM

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