+ Reply to Thread
Results 1 to 4 of 4

Reference Other Work Sheets for Conditional Formatting

  1. #1
    Registered User
    Join Date
    04-12-2007
    Posts
    10

    Reference Other Work Sheets for Conditional Formatting

    I know that for conditional formatting the criteria cannot include references to other worksheets even if they are in the same workbook, but does somebody have a workaround for this? Thanks in advance.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    While it's true you cannot reference other worksheets or workbooks directly in a conditional format formula, you can use a named range that refers to another location.

    For example, let's say you want to change the background color of cell A1 on Sheet1 if the value in cell B1 on Sheet2 was greater than 5.

    Go to cell B1 on Sheet2 and click Insert > Name > Define (or in Excel 2007, go to the Formula ribbon bar and click Define Name). Create a name for that cell (try to avoid spaces or special characters, generally). Let's say you named it: Sheet2B1

    Now, go to cell A1 on Sheet1 and open the Conditional Formatting window. Add a conditional format such that the 'Formula Is' =Sheet2B1>5

    That should do it!

  3. #3
    Registered User
    Join Date
    10-11-2007
    Posts
    31

    Re: Reference Other Work Sheets for Conditional Formatting

    Hi!

    I am trying to do that, using a named rage with this formula:

    Please Login or Register  to view this content.
    But I get this error: You may not use references to other worksheets or workbooks for Conditional Formatting criteria


    I even gave up on trying to use different worksheets and tried to put all my data in the same worksheet to see if it works, but incredibly I got tha exact same error!

    Please Login or Register  to view this content.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Reference Other Work Sheets for Conditional Formatting

    Kinna,

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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