+ Reply to Thread
Results 1 to 4 of 4

Highlight if in Named Range

  1. #1
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Highlight if in Named Range

    Hello,

    On the Monthly Analysis sheet I would like to apply the text color to the events that I put in the upper right for the Named Ranges.

    For instance the Holidays would be purple text color in the calendar days.

    Is this possible to do?

    I have Named Ranges:

    SpecialOccasions
    BillsDue
    Holidays
    PayDays

    Thank you very much for your help

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Highlight if in Named Range

    Your Holiday named range is discontiguous, so I can't think of a way to get that to work. I suggest you make it

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then the following directions will work. You have the same issue with PayDays.

    The easiest thing to do is to see if the name of the event in the calendar is found in the corresponding named range.

    Select the event cells in the first day (G7:G11) and create the following rule for Holidays:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and set up the color you want for holidays. Repeat for the other named ranges.

    Now use the format painter, copying from G7:H11 and painting the format to every other day in the calendar.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Highlight if in Named Range

    Thank you I just found the same thing being discontinuous.

    I didn't realize that it matters.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Highlight if in Named Range

    My solution uses MATCH which won't work with discontinuous ranges. There might be other solutions that do.

+ 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. Listbox displaying named range B but Adding named range A to cell
    By ikkenieikke in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2018, 02:27 PM
  2. [SOLVED] Compare cells to named range and create new sheets using related named range
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2015, 03:35 PM
  3. [SOLVED] Assign named range to one cell depending on named range in another
    By x65140 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-22-2015, 11:04 AM
  4. [SOLVED] determining if cell is part of named range and what that named range is
    By stnkynts in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2014, 07:56 PM
  5. Adding row to a named range-updating the named range address
    By kjsconv in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-12-2013, 11:22 PM
  6. Replies: 1
    Last Post: 02-27-2013, 12:00 AM
  7. [SOLVED] Determine what Named Range the Target Address is and return Named Range Name
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2012, 10:49 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