Data Validation - two questions

normpam

Active Member
Joined
Oct 30, 2002
Messages
269
I like to use named ranges a lot. I note that if I use a named range with Data Validation to NOT allow duplicate entries, such as:
=countif(Items,B2)=1, the Data Validation simply won't work. It seems to be forcing me to use:
=countif($B$2:$B$74,B2)=1

This is the first time I have found that a named range does not work exactly the same as using the actual cell addresses. Any thoughts? Is there a way around this?

Also, someone pointed out something to me a long time ago. The developers came up with a great feature with Data Validation, but it only works for actual data entry into a cell - if someone copies and pastes into the cell, Data Validation doesn't work at all. What would be a good way to keep someone from being able to copy a duplicate value in any given cell?
Thanks!
 

Some videos you may like

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

maabadi

Well-known Member
Joined
Oct 22, 2012
Messages
1,614
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I don't understand what you say Exactly.
1. Please upload your Example file & Desired Results With XL2BB ADDIN (Preferable) or free hosting site e.g. www.dropbox.com , GoogleDrive or OneDrive & insert Link here
2. If you want extract unique value, you can use different formula based Excel & OS Version. Please upload your account detail (click on your name , account detail and update and finally save it) to we can help to you based excel version.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,377
Messages
5,624,339
Members
416,021
Latest member
simbonile

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