+ Reply to Thread
Results 1 to 9 of 9

Comparing one cell with several other cells to highlight duplicates

  1. #1
    Registered User
    Join Date
    02-27-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Comparing one cell with several other cells to highlight duplicates

    Hey,

    I have a challenging excel problem.

    I have a column A, with over 6000 cells, and a column B with 320 cells. All these cells contain text, not values. I want to be able to highlight text in cells in column A, that is found in ANY of the cells in column B.

    I am using Excel 2007, therefore cannot use the Formula is option in conditional formatting. I have not found a way to be able to use conditional formatting to achieve this. Is there a way to highlight specific text containing ANY cells in column B?

    The only way I can think to get around it now is to waste lots of space, and have all 320 text items in each cell of column B, then to highlight cells in column B that contain duplicate text in column A. I would much prefer a tidier method.

    Can anyone help?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Comparing one cell with several other cells to highlight duplicates

    Try use in Conditional Formatting =COUNTIF($A$1:$A$100,$A1)>1

  3. #3
    Registered User
    Join Date
    02-27-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Comparing one cell with several other cells to highlight duplicates

    Nope, that doesn't work. Where would I put that in conditional formatting - format values where this formula is true? It doesn't seem to do anything.

    It needs to be comparing each cell in column A, with all cells in column B.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Comparing one cell with several other cells to highlight duplicates

    Then use =COUNTIF($B$1:$B$100, $A1)>=1 like in example:
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by zbor; 02-27-2011 at 06:38 AM. Reason: >= instead of just >

  5. #5
    Registered User
    Join Date
    02-27-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Comparing one cell with several other cells to highlight duplicates

    Nope, that doesn't work either. This is text, not values. Your formula only seems to work for values.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Comparing one cell with several other cells to highlight duplicates

    It work for text too..
    Maybe you just need to change > to >=

    Can you at least upload example and explain what you want, please?

  7. #7
    Registered User
    Join Date
    02-27-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Comparing one cell with several other cells to highlight duplicates

    Indeed, you're right. I changed > to = and it worked. Thanks very much

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Comparing one cell with several other cells to highlight duplicates

    Change it to a >= together or it will ignore more then 1 duplicate

  9. #9
    Registered User
    Join Date
    02-27-2011
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Comparing one cell with several other cells to highlight duplicates

    Ah, that won't be necessary since there is never more than one duplicate in column A. Each text entry is unique. Thanks anyway.

+ 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