Cell Validation

markster

Well-known Member
Joined
May 23, 2002
Messages
572
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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
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.
 
Joined
Jul 30, 2006
Messages
3,656
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,286
Messages
5,836,425
Members
430,428
Latest member
Deepak Tanwar

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
Top