Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting dupicate items on another worksheet.

Status
Not open for further replies.

megnin

Technical User
Apr 9, 2002
4
US
I'm currently using this formula in Conditional Formatting to highlight duplicate part numbers in column B of one worksheet: =COUNTIF($B$2:$B$2000,b2)>1

I've added a second worksheet for a different region, and want to detect duplicate entries from the first worksheet as well, i.e. if a number is entered on worksheet #2 I want to highlight it if it already exists on worksheet #1 or on #2.

Thanks in advance
 
Hi,

On SHeet 2, you could do...
Code:
=OR(COUNTIF($B$2:$B$2000,B2)>1,
COUNTIF(Sheet1!$B$2:$B$2000,B2)>1)
Hope this helps :) Skip,
SkipAndMary1017@mindspring.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top