How to check/prevent duplicate data entered into cells

mmartinez13

New Member
Joined
Sep 1, 2011
Messages
21
I am currently using Data Validation to confirm correct data is entered into cells. I would also like to check/prevent duplicate numbers in some of the same columns/cells.

Any suggestions on how I do this?

Thanks in advance for your help.
 

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.
I am just using a worksheet, at the moment.

I am wanting to confirm that I do not duplicate data in columns B and D.
 
Upvote 0
Assuming your putting data into column A in the range A1:A10, and the data you want to avoid duplicating is in B1:C10. Highlight A1:A10 and open the data validation dialogue, Alt + D + L is the keyboard shortcut. in the dropdown select custom, type =Countif($B$1:$C$10,A1)<=1 then click ok. Now if you duplicate any of the items in the range B1:C10 you should get an error message pop up
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

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