find duplicates

sheshadrinurani

New Member
Joined
Mar 11, 2011
Messages
2
Hi,

I have some names in (worksheet) 1 column A and values in corressponding column B, similarly another worksheet 2 has names in column A and values in column B. Some of the names in worksheet 1 and worksheet 2 are similar so how can I mark either one as duplicate?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
You can use the CountIf function. For example, if your potential duplicates are in Sheet1 Col A and Sheet2 Col A, you can find which of Sheet1's entries are also in Col A of Sheet2 with this formula in Sheet1 cell C1. Copy the formula down to the end of your range. Any cells > 0 have duplicates in Sheet2.

Code:
=COUNTIF(Sheet2!A:A,A1)
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,740
Members
452,940
Latest member
Lawrenceiow

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top