#1   Report Post  
Hardy03
 
Posts: n/a
Default data validation

In cell A1 users are required to enter either 0,1 or 2. Firstly how do I make
this cell only accept these values and secondly, if they enter 1 (not 0 or 2)
I need B1 to become a listbox, listing two options.
Can anyone help please?

I would like B1 to be blank if they put a 0 or 2 in A1

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

You need what many call Conditional Dropdowns. Check out my recent post
he
http://www.vbaexpress.com/forum/show...1212#post31212

*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Hardy03" wrote in message
...
In cell A1 users are required to enter either 0,1 or 2. Firstly how do I

make
this cell only accept these values and secondly, if they enter 1 (not 0 or

2)
I need B1 to become a listbox, listing two options.
Can anyone help please?

I would like B1 to be blank if they put a 0 or 2 in A1



  #3   Report Post  
Hardy03
 
Posts: n/a
Default

Had a look at conditional formatting, but doesn't seem to allow you to
constrain a cell to 0,1 and 2 values, also it doesn't help with the showing
of the listbox in B1 (or am i doing something wrong).
Can't access your link

"Anne Troy" wrote:

You need what many call Conditional Dropdowns. Check out my recent post
he
http://www.vbaexpress.com/forum/show...1212#post31212

*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Hardy03" wrote in message
...
In cell A1 users are required to enter either 0,1 or 2. Firstly how do I

make
this cell only accept these values and secondly, if they enter 1 (not 0 or

2)
I need B1 to become a listbox, listing two options.
Can anyone help please?

I would like B1 to be blank if they put a 0 or 2 in A1




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

I think Anne meant data validation not conditional formatting, see
http://www.contextures.com/xlDataVal01.html

And CF does allow multiple values. Change the condition to FormulaIs and use
a a formula like

=OR(A1=0,A1=1,A1=2)

--
HTH

Bob Phillips

"Hardy03" wrote in message
...
Had a look at conditional formatting, but doesn't seem to allow you to
constrain a cell to 0,1 and 2 values, also it doesn't help with the

showing
of the listbox in B1 (or am i doing something wrong).
Can't access your link

"Anne Troy" wrote:

You need what many call Conditional Dropdowns. Check out my recent post
he
http://www.vbaexpress.com/forum/show...1212#post31212

*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Hardy03" wrote in message
...
In cell A1 users are required to enter either 0,1 or 2. Firstly how do

I
make
this cell only accept these values and secondly, if they enter 1 (not

0 or
2)
I need B1 to become a listbox, listing two options.
Can anyone help please?

I would like B1 to be blank if they put a 0 or 2 in A1






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 lists [email protected] Excel Discussion (Misc queries) 5 June 25th 05 07:44 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
Data validation mac Excel Worksheet Functions 2 January 31st 05 07:20 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Using Validation List from Another Workbook with Dependent Data Mike R. Excel Worksheet Functions 5 January 8th 05 07:06 PM


All times are GMT +1. The time now is 12:24 AM.

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"