|  

» Preventing Duplicates While Entering Data

To prevent duplicates while entering data:

1. Select a range of cells, for example, A2:A20.
2. From the Data menu, select Validation.
3. Select the Settings tab.
4. From the Allow dropdown list, select Custom.
5. In the Formula box, enter the following formula:
=COUNTIF($A$2:$A$20,A2)=1
6. Select the Error Alert tab.
7. In the Title box, enter Duplicate Entry.
8. In the Error message box, enter "The value you entered already appears in the list above".
9. Click OK.




Rate This Tip
12 34 5
Rating: 3.84     Views: 40379
Duplicate data
Gracie  Posted on: 31-12-1969
How do you sort the column with the duplicate error message? Can the column be sorted in ascending order? I want all the messages with duplicate to be together and same with the unique messages. I'm not getting that.
Tip on Prevending duplicate data entry thru data validation
Jyoti Shekhar  Posted on: 31-12-1969
I found this tip very useful and I have shared this with all my colleagues.
Keep up the good work.
I am an excel enthusiast myself and would like to share my knowledge too.
Duplicate data Step 7
Thomas F. Crawford  Posted on: 31-12-1969
I am running Excel 2001 for the MAC.
I don't understand what I am supposed to put in the Error message Box. " in the Error msg box enter the value you entered already appears in the list"
Re: Duplicate data step 7
Okra Mendes  Posted on: 31-12-1969
You need to type the message that is in the following brackets:
"The value you entered already appears in the list"
This is the message that will pop up when a duplicate is found.
Name
Comment Title
Comments