Avoiding Duplicates

G

Guest

I would like to apply Data Validation to entries in a cell to prevent
duplicates, but I need the facility to enter a "valid duplicate" eg When
entering a surname that has been used before a warning is returned but this
can be ignored if entry is valid.
 
V

VBA Noob

Hi,

say your area is A1 to C20. Select it go to Data Validation and enter.

=COUNTIF($A$1:$C$20,A1)=1

VBA Noob
 
B

Bob Phillips

Use a formula of

=COUNTIF($A$2:$A$209,A2)>1

where A2 is the DV cell, and on the Error Alerttab of DV, set the error
style type to Warning

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
B

Bob Phillips

Sorry, should be = 1

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 

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

Similar Threads

Access Auto Matching Duplicates? 0
Preventing Duplicates 11
Duplicates Deletion ? 2
Duplicates 2
Identifying duplicate data 4
Entire Row Duplicates 6
Navigating to Duplicates 2
Finding duplicates in Multiple Columns 16

Top