data validation

J

jiji

Hi,
I like to know how i can limit cell to whole numbers only, but also avoid
duplication of the same number in different cells.

Tnx. in advance.
 
T

T. Valko

Assume the range of cells in question is A1:A10

Select the range A1:A10
Goto the menu Data>Validation
Allow: Custom
Formula:

=AND(INT(A1)=A1,COUNTIF(A$1:A$10,A1)<2)

OK out
 
J

jiji

TNX.

T. Valko said:
Assume the range of cells in question is A1:A10

Select the range A1:A10
Goto the menu Data>Validation
Allow: Custom
Formula:

=AND(INT(A1)=A1,COUNTIF(A$1:A$10,A1)<2)

OK out
 
Top