+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting Based on if two cells have same value?

  1. #1
    Forum Contributor
    Join Date
    11-20-2008
    Location
    UK
    Posts
    132

    Question Conditional Formatting Based on if two cells have same value?

    I want to use conditional formatting to hide text in a cell (by changing it's colour) if cell B8=True AND if either cells B9 or B10 also =True. So if B8=True but B9 & B10 = False the text isn't hidden. If B8=False but B9 & B10 = True the text isn't heading but if B8=True and either B9 or B10 = True the text is hidden. I can't seem to get anything to work. Does it matter that cells B8-B10 are in a different sheet to the cell I'm formatting? (I'm obviously adding the name of the sheet etc into the formula but nothing seems to work)

    I've tried various things including ="IF(Lists!$B$8=""True""(AND(Lists!$B$8=Lists!$B$9,Lists!$B$8=Lists!$B$10)))" but obviously I've formatted this wrong.

    Also I have one of a number tickboxes in the cell I'm applying the conditional formatting to. Is it possible to hide the tickbox if the same criteria is met?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,721

    Re: Conditional Formatting Based on if two cells have same value?

    You could apply a name to those cells (eg first, second, third), then the CF formula would be:

    =AND(first,OR(second,third))

    Putting True in quotes makes Excel treat it as a text value, but your whole expression would be treated as a text string because of the quotes at the beginning and end.

    Hope this helps.

    Pete

+ 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