ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Multiple condition data validation (https://www.excelbanter.com/excel-worksheet-functions/263281-multiple-condition-data-validation.html)

IanC[_2_]

Multiple condition data validation
 
Is it possible to set up data validation to allow only numbers greater than
or equal to zero OR text equal to n/a.

I have check sheets for machine maintenance with specific tests listed and
cells formatted to accept results. These results are numeric (=0) but there
are some machines without certain options fitted so some checks are not
relevant. I would like to allow the user to enter n/a in these cells if the
check is not required.

Any ideas?

--
Ian
--



Ron Rosenfeld

Multiple condition data validation
 
On Thu, 6 May 2010 17:00:17 +0100, "IanC" wrote:

Is it possible to set up data validation to allow only numbers greater than
or equal to zero OR text equal to n/a.

I have check sheets for machine maintenance with specific tests listed and
cells formatted to accept results. These results are numeric (=0) but there
are some machines without certain options fitted so some checks are not
relevant. I would like to allow the user to enter n/a in these cells if the
check is not required.

Any ideas?

--
Ian


You could use a formula for the validation:

=OR(AND(ISNUMBER(A1),A1=0),EXACT(A1,"n/a"))

If you want to allow the n/a to be case insensitive, then try:

=OR(AND(ISNUMBER(A1),A1=0),A1="n/a")

--ron

Paul C

Multiple condition data validation
 
Yes you can.

Select Custom as the type and use this formula
=OR(AND(ISNUMBER(A1),A1=0),A1="n/a")
--
If this helps, please remember to click yes.


"IanC" wrote:

Is it possible to set up data validation to allow only numbers greater than
or equal to zero OR text equal to n/a.

I have check sheets for machine maintenance with specific tests listed and
cells formatted to accept results. These results are numeric (=0) but there
are some machines without certain options fitted so some checks are not
relevant. I would like to allow the user to enter n/a in these cells if the
check is not required.

Any ideas?

--
Ian
--


.


IanC[_2_]

Multiple condition data validation
 
Dear Ron & Paul

Many thanks for the suggestions. Sorted now using the non-case-sensitive
option.

--
Ian
--

"IanC" wrote in message ...
Is it possible to set up data validation to allow only numbers greater
than or equal to zero OR text equal to n/a.

I have check sheets for machine maintenance with specific tests listed and
cells formatted to accept results. These results are numeric (=0) but
there are some machines without certain options fitted so some checks are
not relevant. I would like to allow the user to enter n/a in these cells
if the check is not required.

Any ideas?

--
Ian
--






All times are GMT +1. The time now is 11:51 PM.

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