+ Reply to Thread
Results 1 to 6 of 6

highlight if cells DONT MATCH

  1. #1
    Registered User
    Join Date
    11-23-2008
    Location
    uk
    Posts
    41

    highlight if cells DONT MATCH

    Hi
    i have two columns....

    if cell a1 DOESNT match what is in cell b1 and
    if cell a2 DOESNT match cell b2

    i want it the cell to be highlighted.

    I dont want a1 to be checking against any other cell, just the one next to it...

    hope this makes sense and hope someone can help

    thanks guys
    x

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: highlight if cells DONT MATCH

    What version of Excel are you using?

    If matching text, does case matter? For example, does "This" match "this" ?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    11-23-2008
    Location
    uk
    Posts
    41

    Re: highlight if cells DONT MATCH

    i have excel 2003 and 2013 so can use either.
    the cell value is numbers 0 to 20.
    just want to compare cells next to each other so compare a1 to b1 and a2 to b2 and highlight any that DONT match

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: highlight if cells DONT MATCH

    Ok, the location of menu items is different in Excel 2003 and 2013.

    Assuming no empty cells...

    Let's assume the range of interest is A1:B10.

    In Excel 2003...

    Select the *entire* range A1:B10 starting from cell A1.
    Cell A1 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the menu Format>Conditional Formatting

    Select the Formula Is option

    Enter this formula in the box on the right:

    =$A1<>$B1

    Click the Format button
    Select the Patterns tab
    Select the desired fill color
    OK out


    In Excel 2013...

    Select the *entire* range A1:B10 starting from cell A1.
    Cell A1 will be the active cell. The active cell is the
    one cell in the selected range that is not shaded. The
    formula will be relative to the active cell.

    Goto the Home tab>Conditional Formatting>
    Manage rules>New rule>Use a formula to determine
    which cells to format

    Enter this formula in the box below:

    =$A1<>$B1

    Click the Format button
    Select the Fill tab
    Select the desired fill color
    OK out

  5. #5
    Registered User
    Join Date
    11-23-2008
    Location
    uk
    Posts
    41

    Re: highlight if cells DONT MATCH

    THATS GREAT! thank you!

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: highlight if cells DONT MATCH

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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] compare values in two cells, highlight when there is no match.
    By frhling in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 01-03-2013, 09:29 AM
  2. Highlight cells if they don't match one of two cells (macro)
    By apollo753 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2012, 12:04 AM
  3. Replies: 3
    Last Post: 05-18-2012, 08:11 AM
  4. Highlight the cells that match??
    By Ltat42a in forum Excel General
    Replies: 8
    Last Post: 08-26-2011, 12:36 PM
  5. If two cells match (date), highlight a third cell...
    By engeecee in forum Excel General
    Replies: 4
    Last Post: 08-14-2009, 09:47 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