# Excel exclude list of values from all areas of workbook

Greetings,
I have a table of 300+ email addresses. I want to do a FIND in the cell B2:B350 in cells C2:C50

I want to check if the value of each cell is unique in the workbook and return some kind of indicator.

Thank you!!!
JohnD
LVL 1
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
JohnD,

I'm assuming your questions have two parts..

1. If you want to see whether values of C2:C50 exists in cells B2:B350 then use this formula in D2 and drag it down...

``````=Countif(B\$2:B\$350,C2)
``````

Now drag this down till D50 and for any values which exist it will give you 1 or how many times it exists if it doesn't exist it will give you a zero as answer...

2. Assuming you don't have any blank values from B2 to B350..You can use this formula at any cell it will tell you whether it has duplicates or all values are unique..

``````=IF(COUNTA(B2:B350)<>SUMPRODUCT(1/COUNTIF(B2:B350,B2:B350)),"Has Duplicates","Unique")
``````

Saurabh...
PMAuthor Commented:
I posed my question poorly; my apologies

I want to make sure the values in Column B are unique throughout the workbook. Is there a formula which I can place in Column C which checks for each value in Column B across the whole workbook?
Commented:
Which are the columns or range you want to check for duplicate???

Assuming if you want to check columns D TO E then you can use..

=countif(D:E,B2)

This formula need to be applied in C2..Now if the count is more that means this value exists more then once IN Column D and E.. You can play around with this formula as in range and drag this down to check how many times values exists..

Saurabh...
PMAuthor Commented:
Thank you; I have 8 tables on 8 separate worksheets which need to be checked for duplicates
Commented:
You can do something like this...

``````=COUNTIF(Table1,b2)+COUNTIF(Table2,b2)+COUNTIF(Table3,b2)+COUNTIF(Table4,b2)+COUNTIF(Table5,b2)+COUNTIF(Table6,b2)+COUNTIF(Table7,b2)+COUNTIF(Table8,b2)
``````

Now anytime when the value is more then 1 you know its a duplicate..and i have assumed your table name starts with table1 and goes till table8..

Saurabh...

Experts Exchange Solution brought to you by