+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting Help-What I want to do is compare them

  1. #1
    Registered User
    Join Date
    08-13-2007
    Posts
    6

    Conditional Formatting Help-What I want to do is compare them

    Hi guys,

    I'm a bit of a novice Excel user, and I'm trying to do something that I think is quite simple, and am finding it quite hard.

    One of the columns (G) in my spreadsheet is a list of colleagues names... What I want to do is compare them to a smaller list of peoples names (that is on sheet 2) and if there are any matches, I want them to be shown in red across the entire row where that match occurred... Is this possible?

    Thanks in advance.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    OK,

    lets assume you have data from row 1 to 100 and you want to make the entire row red (column A to column Z) within this range whenever name in column G matches any name in sheet2!A1:A50

    Select

    A1:Z100 with A1 "active cell"

    Format > Conditional Formatting > "formula is" option

    =MATCH($G1,INDIRECT("sheet2!A1:A50"),0)

  3. #3
    Registered User
    Join Date
    08-13-2007
    Posts
    6
    Quote Originally Posted by daddylonglegs
    OK,

    lets assume you have data from row 1 to 100 and you want to make the entire row red (column A to column Z) within this range whenever name in column G matches any name in sheet2!A1:A50

    Select

    A1:Z100 with A1 "active cell"

    Format > Conditional Formatting > "formula is" option

    =MATCH($G1,INDIRECT("sheet2!A1:A50"),0)
    Thank you so much for your help!!

    Just to progress from this idea, does anyone know how I can delete the rows where there is a match instead of just changing their formatting?

  4. #4
    Registered User
    Join Date
    08-13-2007
    Posts
    6

    Smile

    Anyone any ideas?

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    For that sort of thing you'd need VBA, not my forte....I suggest you start a new thread in Excel programming where you might get more help

+ 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