Cell Validation

markster

Well-known Member
Joined
May 23, 2002
Messages
579
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello

I need to get someone to enter data in a spreadsheet. They will be entering in column a. I need to fix it so the person entering the data cannot enter duplicate numbers so saying 1234 appears in cell a1, if they try to put the same number in in say a100 it won't let them.

Is this possible? and if so how?

Thanks
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
1. Select A1:A1000 (or whatever range is appropriate)
2. Go Data>Validation>Allow: Custom and use a formula of:

=COUNTIF($A:$A,$A1)<2

and hit OK.
 
Upvote 0
markster,

Highlite the range, say A1:A1000
Data, Validation, Settings tab, "Allow:" box, pick "Custom", enter into the "Formula:" box, the following formula:
=COUNTIF($A$1:$A$1000,A1)=1

Then enter into two cells:
1234


Have a great day,
Stan
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top