How can I setup in Excel Worksheet Column a number is not repeat?

S

Shahzad Zameer

Dear All,

I want that in a Column a number should not repeat again. Suppose if I write
in Column A a number 7 then it can't be write again in same Column A. Please
help how to do this?
 
R

RichardM

Hi Shahzad

Select column A and go to Validation (on the Data menu)
select "Custom" in the "Allow" box and enter the formula:

=MATCH(A1,$A:$A,0)=ROW(A1)

then click OK

Any unique number is now allowed in column A but a duplicate will give
an error
 
S

Shahzad Zameer

Thanks a lot Mr. RichardM, it solved my problem.

RichardM said:
Hi Shahzad

Select column A and go to Validation (on the Data menu)
select "Custom" in the "Allow" box and enter the formula:

=MATCH(A1,$A:$A,0)=ROW(A1)

then click OK

Any unique number is now allowed in column A but a duplicate will give
an error
 

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