# Comparing one cell with several other cells to highlight duplicates

1. ## 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. ## Re: Comparing one cell with several other cells to highlight duplicates

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

3. ## 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. ## Re: Comparing one cell with several other cells to highlight duplicates

Then use =COUNTIF(\$B\$1:\$B\$100, \$A1)>=1 like in example:

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. ## 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. ## 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. ## 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. ## 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.

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### 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