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

Excel - Format Column for No Duplicates 2

Status
Not open for further replies.

grnzbra

Programmer
Mar 12, 2002
1,273
US
I can design a table in MSAccess or SQL Server to not allow duplicates. Is there any way to design a worksheet in Excel to allow the user to enter anything they want provided it doesn't already exist in that column? I have vba code to check for duplicates, but when a lot of data has been entered, the whole thing bogs down. I'd like to be able to format a column of cells for "No Duplicates".
 
Hi,

Check out Data > Validation ... the LIST option, using the MATCH() function to search the cells above.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Try a "custom" data validation.[ ] With Excel-2010 you can apply your validation formula to the entire column, in the one operation.[ ] Maybe with other versions as well, but I have never tried.

Select the entire column, say column L.
Data > Data validation > Set allow = "Custom"
Enter [tt]=COUNTIF($L:$L,L1)=1[/tt]
into the formula box.

All done.[ ] This will allow for duplicates that appear below the cell you are entering into, as well as duplicates above.
 
Thank you both. This has been most helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top