ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How to avoid duplicate string value input in one column? (https://www.excelbanter.com/excel-worksheet-functions/137214-how-avoid-duplicate-string-value-input-one-column.html)

Wavelet

How to avoid duplicate string value input in one column?
 
Hi,

I want to set a constraint on one excel column so that when the input
is duplicate
with other column, excel sheet will refuse to accept. It's string
type. Does anyone
know how to implement it in excel 2003?

Thanks,
--Wavelet


T. Valko

How to avoid duplicate string value input in one column?
 
Use data validation

Assume you want to restrict entry into column A if column B already contains
the value

Select column A
Goto the menu DataValidation
Select Custom
Formula:

=COUNTIF(B:B,A1)=0

OK out

Note that a user can still copy/paste or drag-n-drop a restricted value into
column A.

Biff

"Wavelet" wrote in message
oups.com...
Hi,

I want to set a constraint on one excel column so that when the input
is duplicate
with other column, excel sheet will refuse to accept. It's string
type. Does anyone
know how to implement it in excel 2003?

Thanks,
--Wavelet





All times are GMT +1. The time now is 08:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com