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

Limiting Value in a range of cells in Excel 1

Status
Not open for further replies.

starbird

IS-IT--Management
Jun 12, 2002
22
0
0
US
Hello there. I am running Excel XP, and want to know if I can format a cell range (say a column) to not allow duplicate numbers.

Is this possible?

Thanks.
 
Data / Validation / Custom / Formula:-

=COUNTIF($A$10:$A$27,A10)<2

Select cell A10, copy it and paste it across A11:A27. Now try entering two duplicates.

Note - Data Validation can be bypassed by a simple copy and paste from another cell though.

Regards
Ken..............
 
Thank you. Works perfectly. Thanks again.
 
My pleasure - just for info, you can also use a similar function in Conditional formatting to analayse existing sets of data and highlight any existing duplicates.

=COUNTIF($A$10:$A$27,A10)>1

Regards
Ken.............

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top