ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Data Validation - List - Data "NOT BETWEEN" - Source Possible? (https://www.excelbanter.com/excel-worksheet-functions/95670-data-validation-list-data-not-between-source-possible.html)

Duke2U

Data Validation - List - Data "NOT BETWEEN" - Source Possible?
 
Setting up electronic log sheet where serial numbers are entered. Trying to
use VALIDATION to check previous entry's for duplicates. If "Data" was able
to be change to "Not Between" that would be great, but this window is greyed
out in Data Validation. Is there another way?

Max

Data Validation - List - Data "NOT BETWEEN" - Source Possible?
 
"Duke2U" wrote:
Setting up electronic log sheet where serial numbers are entered. Trying to
use VALIDATION to check previous entry's for duplicates. If "Data" was able
to be change to "Not Between" that would be great, but this window is greyed
out in Data Validation. Is there another way?


Try this ..

Select the data input range, say A2:A20 (with A2 active)
Then click Data Validation Custom
Formula:
=AND(COUNTIF($A$2:A2,A2)<2,A2=1000,A2<=2000)
Click OK

The formula will disallow duplicate entries down the range, and also ensures
that only numbers between 1000 to 2000 [inclusive] are permitted (as an
example)

Test it out and adapt to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


All times are GMT +1. The time now is 09:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com