+ Reply to Thread
Results 1 to 6 of 6

Conditional Format to refer to Named Range

  1. #1
    Registered User
    Join Date
    08-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Conditional Format to refer to Named Range

    Hello everyone!

    I have a named range that uses a formula (OFFSET to be specific) to vary the range based on data in my sheet. I would like to point to this named range using Conditional Formatting, but when I enter =Time Left Completing Items V2.3.xlsx'!Mark_Region, and hit Apply, it will change what I entered to the previous range assigned (which was static).

    If you have ideas of how to do this, please lay it on me. Thanks!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Would like Conditional Format to refer to Named Range

    post the formula, and probably a workbook:

    To attach a Workbook
    (please do not post pictures of worksheets)
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Re: Would like Conditional Format to refer to Named Range

    Right now the user would have to define the visual grid using the format painter, but I would like to have excel automatically apply conditional formatting to the region d1:m15 based on the value of b1.

    Here are the formulas defining my named ranges.

    Mark_Region_10s:
    Please Login or Register  to view this content.
    Mark_Region_REM:
    Please Login or Register  to view this content.
    When I try to choose which cells the conditional formatting refers to to one of these named ranges, it reverts to the previous range, which is static. How can I ask it to refer to one of my named ranges?

    Thanks for any way that you can help!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Conditional Format to refer to Named Range

    Hello
    Not quite sure I understand what you're trying to do with the named ranges but if you need to format the number of cells in the grid of D1:M15 less then or equal to cell B1, then apply the following Conditional Formatting formula to D1:M15:

    Please Login or Register  to view this content.
    See the Example tab in the attached reply.

    Hope this helps.
    DBY
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-17-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Format to refer to Named Range

    Wow, I love your solution. Genius! Thank you so much for helping!

    I thought that I had to use named ranges in order to do it. But your solution is far more elegant. Thank you!

    I found that using named ranges allowed for graphs to point to conditional ranges so I thought the same would be for conditional formatting.

    For the record though, is it indeed possible to point to a named range for a conditional formula?

    Thanks again DBY!

  6. #6
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Conditional Format to refer to Named Range

    Glad to have helped. You can point to named ranges in Conditional formatting but I'm not sure how it could be applied efficiently to the problem you posed. You would still have to apply some sort of count to each cell in the grid in order to compare to cell B1.

    Regards
    DBY

+ 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] What happens when I refer to a named range?
    By RogeratCCCC in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-21-2012, 04:06 PM
  2. VBA Refer to named range in different workbook
    By globalpontoon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2010, 03:20 AM
  3. Refer to named range in another file
    By Bob@Sun in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-04-2010, 01:22 PM
  4. Refer indirectly to named range
    By chartguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2009, 12:50 PM
  5. [SOLVED] How does one refer to the n-1 element of a named range?
    By Charles Hewitt in forum Excel General
    Replies: 2
    Last Post: 11-26-2005, 03:00 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