What formula should I use to compare duplicate data between worksh

G

genoq

I have a workbook with 2 spreadsheets, each with containing a list of part
numbers. On the second spreadsheet, I want to compare lists and identify
duplicates from the first list, without changing the sorted order of either
list. What is the easiest way to flag these duplicates on sheet 2
 
B

Bob Phillips

Use a helper column with a formula. Assuming key in column A on Sheet1 and
Sheet2, then use

=IF(COUNTIF(Sheet1!A:A,A1)>0,"Duplicate","")

and copy down

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
G

genoq

Thanks! =) Happy New Year!

Bob Phillips said:
Use a helper column with a formula. Assuming key in column A on Sheet1 and
Sheet2, then use

=IF(COUNTIF(Sheet1!A:A,A1)>0,"Duplicate","")

and copy down

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
A

Aladin Akyurek

A fast way of flagging common items (duplicates, as you call it) between
Sheet2 and Sheet1 would be:

=--ISNUMBER(MATCH(A1,Sheet1!A:A,0))

1 means duplicate, 0 not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top