How to set a validation rule for no duplication of car number plate. Help me please.

Joined
Aug 2, 2011
Messages
2
Reaction score
0
Hi all!

I've been spending few hours trying to figure out how to set a validation rules for no duplication of a car number plates. The table name is "cabs", I've set the "CabsID" as the primary key and i need a validation rule that restrict the data to be enter if it is already there (Indexed - No Duplicates). Can someone help me?

Felix.
 

Becky

Webmistress
Joined
Mar 25, 2003
Messages
7,424
Reaction score
1,511
Hello and welcome to the forums! :wave:

Is that data that you do not want duplicated in one column? You could maybe use a countif function in the 'custom' settings of the data validation options. Assuming that your first cell in the range is A2 you could use the following:

=COUNTIF($A$2:$A$100,A2)=1

where $A$2:$A$100 is the range you have selected for the validation.

If you type in a value that has already been included previously, it should bring up an error.

Hope this helps!
 
Joined
Aug 2, 2011
Messages
2
Reaction score
0
Hey Becky! Thx! In my case, i want the whole field to be set as no duplication. Eg; the car number plate that I've entered are not allowed to be enter again. Is the column thingy works like Microsoft excel? Where the first row first column is A1, first row second column is B1?
 

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

Top