Single Use Values in a Specified List

M

msinex

I have a column on a spreadsheet in which I want the only value to b
inputed are whole numbers between 1 and 240, but I don't want any valu
to be used more than once. I know that I can use data validation t
keep it to whole numbers, but is there a way to make sure each numbe
is only used once within this column? Thanks
 
B

Biff

Hi msinex!

Select the range to apply the data validation.

Use Data Validation. In the Allow dropdown, select Custom
and enter this formula: adjust the range reference in the
Countif function to suit:

=AND(A1>=1,A1<=240,A1=INT(A1),COUNTIF(A$1:A$240,A1)=1)

Biff
 

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

Top