ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Exceptions to Validation Rules (https://www.excelbanter.com/excel-worksheet-functions/5297-exceptions-validation-rules.html)

Jim Johnson

Exceptions to Validation Rules
 
Is there a way to create a validation rule that is used 90% of the time and
also to specify an exception for the other 10%? If I had a field that was
intended to display a date and set up my validation for the date, could I
then create an exception that would allow me to type "tbd" for those dates
that have yet to be determined?

Max

One way might be to just exploit the DV "weakness"?

Type into an adjacent cell: tbd

Copy the cell, and do a
Paste special Values OK
on the cell with the data validation

--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <atyahoo<dotcom
----
"Jim Johnson" wrote in message
...
Is there a way to create a validation rule that is used 90% of the time

and
also to specify an exception for the other 10%? If I had a field that was
intended to display a date and set up my validation for the date, could I
then create an exception that would allow me to type "tbd" for those dates
that have yet to be determined?




Dave Peterson

Maybe you can just issue a warning?

Data|validation|Alert Tab.

You have Stop|Warning|Information options that you can choose from.


Jim Johnson wrote:

Is there a way to create a validation rule that is used 90% of the time and
also to specify an exception for the other 10%? If I had a field that was
intended to display a date and set up my validation for the date, could I
then create an exception that would allow me to type "tbd" for those dates
that have yet to be determined?


--

Dave Peterson


NHarkawat

go to DataValidation and select custom and type the following formula:-

=OR(AND(C3$G$1,C3<$G$2),C3="tbd")
where cells G1 and G2 house the dates (may be the upper and lower limit)

"Jim Johnson" wrote in message
...
Is there a way to create a validation rule that is used 90% of the time

and
also to specify an exception for the other 10%? If I had a field that was
intended to display a date and set up my validation for the date, could I
then create an exception that would allow me to type "tbd" for those dates
that have yet to be determined?




Jim Johnson

Thanks Guys,

Your suggestions really helped out.

"Jim Johnson" wrote:

Is there a way to create a validation rule that is used 90% of the time and
also to specify an exception for the other 10%? If I had a field that was
intended to display a date and set up my validation for the date, could I
then create an exception that would allow me to type "tbd" for those dates
that have yet to be determined?


Max

You're welcome !
Thanks for posting back*
*better late than never <g
--
Rgds
Max
xl 97
---
Please respond in thread
xdemechanik <atyahoo<dotcom
----
"Jim Johnson" wrote in message
...
Thanks Guys,

Your suggestions really helped out.





All times are GMT +1. The time now is 09:04 AM.

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