简体   繁体   中英

How to compare data in two columns of different sheets to find duplicates in Excel

I have two excel Sheets SheetA and SheetB . Both sheets have thousands values. Some values are same in a Column "Numbers" in SheetA and in a column "No." in SheetB . Now I want to make an extra column in SheetA with name "Duplicate" which would have only duplicated or repeated values of SheetA column "Numbers" and SheetB column "No." How is it possible...? Images are given below

Thanks 在此处输入图片说明 在此处输入图片说明

Paste the below formula in your F2 cell of SheetA. Then copy it to other cells.

=IF(AND(COUNTIF(B:B,B2)>1, COUNTIF(SheetB!C:C,B2)>1),B2,"")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM