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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent duplicate entires in Excel

Status
Not open for further replies.

aprunkard

Technical User
Oct 29, 2004
52
US
Is there a way to prevent duplicate entries in a column in Excel? I know how to find duplicates, but I want to prevent them. I'm looking to use this in a spreadsheet that will be used to keep the VIN numbers of vehicles in stock.
Thanks!
 
The only thing I would add is...

1) Select the Entire column by clicking the column letter.

2) Use this slight modification to the Data Validation formula...

=ISNA(VLOOKUP(A1,A:A,1,FALSE))


Regards, Dale Watson
 


You can do this with Data/Validation - Custom and entering a formula like this...

assuming that your data entry range is A2:A10

then...

select A3:A10
Data/Validation - Custom
[tt]
=AND(A3<>$A4:$A$10,A3<>$A$2:A2)
[/tt]
A2 contains
[tt]
=A2<>$A$3:$A$10
[/tt]


Skip,

[glasses] [red]Be advised:[/red] Researchers have found another Descartes trueism, "Cogito ergo spud."
"I think; therefore, I YAM!
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top