data validation

  • Thread starter Thread starter jiji
  • Start date Start date
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.
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top