Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Data Validation Question

Hello,

I have created a data validation for Cell H16 to make sure that the value in
that cell is A, B or C. It works, but it does not check for case
sensitivity. How can I make it to check to make sure that it checks for
upper case, in addition to the correct value in that cell?

I use "Custom" Data Validation, and below is the formula I use.

=OR(H16="A",H16="B",H16="C")

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Data Validation Question

You can use

=OR(EXACT(H16,"A"), and so on

however the easiest way would be to select list from allow as opposed to
custom and type in

A,B,C

in the box, then clear in cell dropdown

That is much easier and the list values are case sensitive


--


Regards,


Peo Sjoblom


"Please Help" wrote in message
...
Hello,

I have created a data validation for Cell H16 to make sure that the value
in
that cell is A, B or C. It works, but it does not check for case
sensitivity. How can I make it to check to make sure that it checks for
upper case, in addition to the correct value in that cell?

I use "Custom" Data Validation, and below is the formula I use.

=OR(H16="A",H16="B",H16="C")

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Data Validation Question

Peo,

Thanks for your help. I just tried
"=or(exact(h16,"A"),exact(h16,"B"),exact(h16,"C")) ", and I got an error
message about formula contains error.

I have also tried the List, and it would not work for me because it would
cause me problems when users type in the value with leading spaces (e.g. "
A").

Thanks.

"Peo Sjoblom" wrote:

You can use

=OR(EXACT(H16,"A"), and so on

however the easiest way would be to select list from allow as opposed to
custom and type in

A,B,C

in the box, then clear in cell dropdown

That is much easier and the list values are case sensitive


--


Regards,


Peo Sjoblom


"Please Help" wrote in message
...
Hello,

I have created a data validation for Cell H16 to make sure that the value
in
that cell is A, B or C. It works, but it does not check for case
sensitivity. How can I make it to check to make sure that it checks for
upper case, in addition to the correct value in that cell?

I use "Custom" Data Validation, and below is the formula I use.

=OR(H16="A",H16="B",H16="C")

Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Data Validation Question

It works fine for me, I even copied what you posted
and it works
Btw, I don't understand what you mean that it wouldn't work if
a user types a leading space, the formula wouldn't work either with a
leading space
unless you use TRIM

the list version works exactly the same as the formula version


--


Regards,


Peo Sjoblom




"Please Help" wrote in message
...
Peo,

Thanks for your help. I just tried
"=or(exact(h16,"A"),exact(h16,"B"),exact(h16,"C")) ", and I got an error
message about formula contains error.

I have also tried the List, and it would not work for me because it would
cause me problems when users type in the value with leading spaces (e.g. "
A").

Thanks.

"Peo Sjoblom" wrote:

You can use

=OR(EXACT(H16,"A"), and so on

however the easiest way would be to select list from allow as opposed to
custom and type in

A,B,C

in the box, then clear in cell dropdown

That is much easier and the list values are case sensitive


--


Regards,


Peo Sjoblom


"Please Help" wrote in message
...
Hello,

I have created a data validation for Cell H16 to make sure that the
value
in
that cell is A, B or C. It works, but it does not check for case
sensitivity. How can I make it to check to make sure that it checks
for
upper case, in addition to the correct value in that cell?

I use "Custom" Data Validation, and below is the formula I use.

=OR(H16="A",H16="B",H16="C")

Thanks.






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Data Validation Question

Peo,

Thanks for the follow-up. For some reason, before I replied to you, the
formula didn't work. After I replied to you, I tried again and it worked.

As far as using the List, it would cause me problems on my adjacent cell
because the list does not validate the leading spaces, and my adjacent cell
is relied on that validating cell. I can not have any leading spaces in the
data validation field; otherwise, my adjacent cell would not work.

Thanks again.



"Peo Sjoblom" wrote:

You can use

=OR(EXACT(H16,"A"), and so on

however the easiest way would be to select list from allow as opposed to
custom and type in

A,B,C

in the box, then clear in cell dropdown

That is much easier and the list values are case sensitive


--


Regards,


Peo Sjoblom


"Please Help" wrote in message
...
Hello,

I have created a data validation for Cell H16 to make sure that the value
in
that cell is A, B or C. It works, but it does not check for case
sensitivity. How can I make it to check to make sure that it checks for
upper case, in addition to the correct value in that cell?

I use "Custom" Data Validation, and below is the formula I use.

=OR(H16="A",H16="B",H16="C")

Thanks.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation Question? mastermind Excel Worksheet Functions 2 December 22nd 06 05:26 PM
Data Validation Question dgraham Excel Discussion (Misc queries) 6 April 28th 06 01:03 PM
Data Validation question anny Excel Worksheet Functions 8 March 16th 06 03:12 AM
DataValidation Question Weave New Users to Excel 2 December 12th 05 08:06 PM
Another Data Validation question Nigel Excel Discussion (Misc queries) 3 October 14th 05 10:37 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"