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

I have two drop down lists.
1. user selects Yes or No in cell A2
2. If user selects Yes then cell B2 allows user to select from a list of 4
items
3. If user selects No then cell B2 should be blank as the user does not
need to enter anymore information.
I was able to create the dependent drop down list if user selects Yes, but
not sure how to have the blank when user selects No.

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

hi
basicly you would set up a "blank list" for you second options.
see this site for details.
http://www.contextures.com/xlDataVal02.html

regards
FSt1

"Shacks" wrote:

I have two drop down lists.
1. user selects Yes or No in cell A2
2. If user selects Yes then cell B2 allows user to select from a list of 4
items
3. If user selects No then cell B2 should be blank as the user does not
need to enter anymore information.
I was able to create the dependent drop down list if user selects Yes, but
not sure how to have the blank when user selects No.

Thanks!

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

Thank you, but if the user selects yes and then chooses an item from the
list, but then changes their selection to No I would like the dependent list
to revert to blank.

"FSt1" wrote:

hi
basicly you would set up a "blank list" for you second options.
see this site for details.
http://www.contextures.com/xlDataVal02.html

regards
FSt1

"Shacks" wrote:

I have two drop down lists.
1. user selects Yes or No in cell A2
2. If user selects Yes then cell B2 allows user to select from a list of 4
items
3. If user selects No then cell B2 should be blank as the user does not
need to enter anymore information.
I was able to create the dependent drop down list if user selects Yes, but
not sure how to have the blank when user selects No.

Thanks!

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

hi
validation doesn't exactly work that way. you will need something extra.
right click the sheet tab that contains your validation.
from the pop up, click view code.
paste this code into the code window.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r As Range
Set r = Range("A2")
If Intersect(Target, r) Is Nothing Then
Exit Sub
Else
If r.Value = "no" Then
r.Offset(0, 1).Value = ""
End If
End If

End Sub

this will check if the selection has changed and if "no", clear B2.

Regards
FSt1

"Shacks" wrote:

Thank you, but if the user selects yes and then chooses an item from the
list, but then changes their selection to No I would like the dependent list
to revert to blank.

"FSt1" wrote:

hi
basicly you would set up a "blank list" for you second options.
see this site for details.
http://www.contextures.com/xlDataVal02.html

regards
FSt1

"Shacks" wrote:

I have two drop down lists.
1. user selects Yes or No in cell A2
2. If user selects Yes then cell B2 allows user to select from a list of 4
items
3. If user selects No then cell B2 should be blank as the user does not
need to enter anymore information.
I was able to create the dependent drop down list if user selects Yes, but
not sure how to have the blank when user selects No.

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-Dependent Lists TonyK Excel Discussion (Misc queries) 2 February 12th 09 10:21 PM
Data validation dependent lists Negative numbers in brackets Excel Discussion (Misc queries) 4 November 9th 07 06:11 AM
dependent lists on data validation Chris Excel Discussion (Misc queries) 3 November 8th 07 12:03 AM
Data Validation and Dependent Lists Q Sean Excel Worksheet Functions 4 May 19th 07 07:19 PM
Dependent List- Data Validation Annie Excel Worksheet Functions 2 September 23rd 05 03:40 PM


All times are GMT +1. The time now is 03:15 AM.

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

About Us

"It's about Microsoft Excel"