+ Reply to Thread
Results 1 to 5 of 5

Highlight matching cells in 2 columns

Hybrid View

  1. #1
    Registered User
    Join Date
    07-18-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    6

    Highlight matching cells in 2 columns

    I have a list of numbers in A3:A400, I have a number in cell B1. The number in cell B1 changes. When B1 changes, I want the cell in column A that matches to be highlighted. My current formula is: =ISERROR(MATCH(B1,$A3:$A400,0))=FALSE

    However, the only cell that gets highlighted when a match is found is A3 (even if the match is A20)

    What am I missing?


    screenshot.jpg

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,533

    Re: Highlight matching cells in 2 columns

    Try

    =A3=MATCH($B$1,$A$3:$A$400,0)

    DoH! of course ... MATCH unneceesary!!!

    see Etaf
    Last edited by JohnTopley; 12-12-2016 at 03:27 PM.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,830

    Re: Highlight matching cells in 2 columns

    if you select A3 to the end of the range

    and in conditional formatting formula

    =A3 = $B$1

    and select the formatting

    now as the conditional moves down the list and tests A3, A4 , A5 etc
    it will not move B1 down as the $ fixes it
    so

    A3 = $B$1 - if true highlights, if False stays clear
    A4 = $B$1 - if true highlights, if False stays clear
    A5 = $B$1 - if true highlights, if False stays clear

    etc
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    07-18-2012
    Location
    Portland, OR
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Highlight matching cells in 2 columns

    Genius!! Thank you both for the replies.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.85 (24051214))
    Posts
    8,830

    Re: Highlight matching cells in 2 columns

    you are welcome, thanks for the rep

+ 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] Conditional format help needed to highlight cells based on partially matching numbers.
    By krjoshi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-01-2016, 12:15 PM
  2. [SOLVED] Highlight matching cells in at least 2 arrays
    By MelB83 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-21-2015, 07:50 PM
  3. Replies: 5
    Last Post: 09-05-2013, 08:59 AM
  4. Replies: 3
    Last Post: 07-20-2012, 10:31 AM
  5. Replies: 1
    Last Post: 11-17-2010, 11:53 AM
  6. Compare 2 columns and highlight matching data
    By schueyisking in forum Excel General
    Replies: 3
    Last Post: 08-13-2009, 10:47 AM
  7. [SOLVED] Compare cells/columns and highlight matching text strings
    By luxbelle in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-25-2005, 06:06 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