Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Noel
 
Posts: n/a
Default Trying to Create a Conditional Drop down list

I am trying to create a form that contains conditional drop down lists for
the user to selct from. i want the user to be able when theypick from a list
i created in cell D3 and when they choose that i want a list to be created in
cell E3 which contains data from a second worksheet. I was able to make it
work using nested if statements for validation but the problem is that it
wont let me go past 7 and i need to do about 50 of them. To make things
easier i defined names to reference all the data on the second worksheet.
This is what i used and it would work if i could do about 50 of them
=IF(D3=K13,Roc,IF(D3=K14,Roc,IF(D3=K15,Camino,IF(D 3=K16,Camino,IF(D3=K17,Admin,IF(D3=K18,Arroyo,IF(D 3=K19,Atascadero,IF(D3=K20,Grover))))))))
matching the cell D3 to data i used to create the list really just matching
itself to itself.
I know there has to be some simple VB code to make it work or some simple
solution, and i do have some experience using vb code but not in this kind of
enviroment.
Does Anyone have any ideas?
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

No code necessary, Noel. Likely you can use a vlookup. See the link below.
While you may not want an order form or invoice, you're wanting virtually
the same thing.
http://www.officearticles.com/tutori...soft_excel.htm
*******************
~Anne Troy

www.OfficeArticles.com


"Noel" wrote in message
...
I am trying to create a form that contains conditional drop down lists for
the user to selct from. i want the user to be able when theypick from a

list
i created in cell D3 and when they choose that i want a list to be created

in
cell E3 which contains data from a second worksheet. I was able to make it
work using nested if statements for validation but the problem is that it
wont let me go past 7 and i need to do about 50 of them. To make things
easier i defined names to reference all the data on the second worksheet.
This is what i used and it would work if i could do about 50 of them

=IF(D3=K13,Roc,IF(D3=K14,Roc,IF(D3=K15,Camino,IF(D 3=K16,Camino,IF(D3=K17,Adm
in,IF(D3=K18,Arroyo,IF(D3=K19,Atascadero,IF(D3=K20 ,Grover))))))))
matching the cell D3 to data i used to create the list really just

matching
itself to itself.
I know there has to be some simple VB code to make it work or some simple
solution, and i do have some experience using vb code but not in this kind

of
enviroment.
Does Anyone have any ideas?



  #3   Report Post  
Noel
 
Posts: n/a
Default

My problem with vlookup is from my understanding is that the data has to be
in the same colum and the value that i am trying to return from the match is
a range on another worksheet and from my understanding of vlookup it cant
return a defined name

"Anne Troy" wrote:

No code necessary, Noel. Likely you can use a vlookup. See the link below.
While you may not want an order form or invoice, you're wanting virtually
the same thing.
http://www.officearticles.com/tutori...soft_excel.htm
*******************
~Anne Troy

www.OfficeArticles.com


"Noel" wrote in message
...
I am trying to create a form that contains conditional drop down lists for
the user to selct from. i want the user to be able when theypick from a

list
i created in cell D3 and when they choose that i want a list to be created

in
cell E3 which contains data from a second worksheet. I was able to make it
work using nested if statements for validation but the problem is that it
wont let me go past 7 and i need to do about 50 of them. To make things
easier i defined names to reference all the data on the second worksheet.
This is what i used and it would work if i could do about 50 of them

=IF(D3=K13,Roc,IF(D3=K14,Roc,IF(D3=K15,Camino,IF(D 3=K16,Camino,IF(D3=K17,Adm
in,IF(D3=K18,Arroyo,IF(D3=K19,Atascadero,IF(D3=K20 ,Grover))))))))
matching the cell D3 to data i used to create the list really just

matching
itself to itself.
I know there has to be some simple VB code to make it work or some simple
solution, and i do have some experience using vb code but not in this kind

of
enviroment.
Does Anyone have any ideas?




  #4   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

There are instructions here for creating dependent data validation lists:

http://www.contextures.com/xlDataVal02.html

Noel wrote:
I am trying to create a form that contains conditional drop down lists for
the user to selct from. i want the user to be able when theypick from a list
i created in cell D3 and when they choose that i want a list to be created in
cell E3 which contains data from a second worksheet. I was able to make it
work using nested if statements for validation but the problem is that it
wont let me go past 7 and i need to do about 50 of them. To make things
easier i defined names to reference all the data on the second worksheet.
This is what i used and it would work if i could do about 50 of them
=IF(D3=K13,Roc,IF(D3=K14,Roc,IF(D3=K15,Camino,IF(D 3=K16,Camino,IF(D3=K17,Admin,IF(D3=K18,Arroyo,IF(D 3=K19,Atascadero,IF(D3=K20,Grover))))))))
matching the cell D3 to data i used to create the list really just matching
itself to itself.
I know there has to be some simple VB code to make it work or some simple
solution, and i do have some experience using vb code but not in this kind of
enviroment.
Does Anyone have any ideas?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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

If you read the instructions at the link, Noel, it tells you how to use a
named range for the lookup range. When you use a named range, it does NOT
have to be on the same worksheet. :)

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

www.OfficeArticles.com


"Noel" wrote in message
...
My problem with vlookup is from my understanding is that the data has to

be
in the same colum and the value that i am trying to return from the match

is
a range on another worksheet and from my understanding of vlookup it cant
return a defined name

"Anne Troy" wrote:

No code necessary, Noel. Likely you can use a vlookup. See the link

below.
While you may not want an order form or invoice, you're wanting

virtually
the same thing.

http://www.officearticles.com/tutori...soft_excel.htm
*******************
~Anne Troy

www.OfficeArticles.com


"Noel" wrote in message
...
I am trying to create a form that contains conditional drop down lists

for
the user to selct from. i want the user to be able when theypick from

a
list
i created in cell D3 and when they choose that i want a list to be

created
in
cell E3 which contains data from a second worksheet. I was able to

make it
work using nested if statements for validation but the problem is that

it
wont let me go past 7 and i need to do about 50 of them. To make

things
easier i defined names to reference all the data on the second

worksheet.
This is what i used and it would work if i could do about 50 of them


=IF(D3=K13,Roc,IF(D3=K14,Roc,IF(D3=K15,Camino,IF(D 3=K16,Camino,IF(D3=K17,Adm
in,IF(D3=K18,Arroyo,IF(D3=K19,Atascadero,IF(D3=K20 ,Grover))))))))
matching the cell D3 to data i used to create the list really just

matching
itself to itself.
I know there has to be some simple VB code to make it work or some

simple
solution, and i do have some experience using vb code but not in this

kind
of
enviroment.
Does Anyone have any ideas?








  #6   Report Post  
Noel
 
Posts: n/a
Default

Thank you, that seems to be working great

"Debra Dalgleish" wrote:

There are instructions here for creating dependent data validation lists:

http://www.contextures.com/xlDataVal02.html

Noel wrote:
I am trying to create a form that contains conditional drop down lists for
the user to selct from. i want the user to be able when theypick from a list
i created in cell D3 and when they choose that i want a list to be created in
cell E3 which contains data from a second worksheet. I was able to make it
work using nested if statements for validation but the problem is that it
wont let me go past 7 and i need to do about 50 of them. To make things
easier i defined names to reference all the data on the second worksheet.
This is what i used and it would work if i could do about 50 of them
=IF(D3=K13,Roc,IF(D3=K14,Roc,IF(D3=K15,Camino,IF(D 3=K16,Camino,IF(D3=K17,Admin,IF(D3=K18,Arroyo,IF(D 3=K19,Atascadero,IF(D3=K20,Grover))))))))
matching the cell D3 to data i used to create the list really just matching
itself to itself.
I know there has to be some simple VB code to make it work or some simple
solution, and i do have some experience using vb code but not in this kind of
enviroment.
Does Anyone have any ideas?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


  #7   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

You're welcome! Thanks for letting me know that it helped.

Noel wrote:
Thank you, that seems to be working great

"Debra Dalgleish" wrote:


There are instructions here for creating dependent data validation lists:

http://www.contextures.com/xlDataVal02.html

Noel wrote:

I am trying to create a form that contains conditional drop down lists for
the user to selct from. i want the user to be able when theypick from a list
i created in cell D3 and when they choose that i want a list to be created in
cell E3 which contains data from a second worksheet. I was able to make it
work using nested if statements for validation but the problem is that it
wont let me go past 7 and i need to do about 50 of them. To make things
easier i defined names to reference all the data on the second worksheet.
This is what i used and it would work if i could do about 50 of them
=IF(D3=K13,Roc,IF(D3=K14,Roc,IF(D3=K15,Camino,I F(D3=K16,Camino,IF(D3=K17,Admin,IF(D3=K18,Arroyo,I F(D3=K19,Atascadero,IF(D3=K20,Grover))))))))
matching the cell D3 to data i used to create the list really just matching
itself to itself.
I know there has to be some simple VB code to make it work or some simple
solution, and i do have some experience using vb code but not in this kind of
enviroment.
Does Anyone have any ideas?


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
drop down list drop down list Excel Worksheet Functions 5 April 9th 05 03:38 AM
Drop down list with multiple choices Cindy Excel Worksheet Functions 6 March 30th 05 01:35 AM
How do I create a drop down list in Excel 2003 Lenny Excel Discussion (Misc queries) 1 February 17th 05 09:26 PM
Is there a way to create a drop-down list of links in Excel? t_boden Excel Worksheet Functions 1 February 3rd 05 06:14 PM
formatting drop down list dennis Excel Discussion (Misc queries) 2 January 11th 05 04:21 PM


All times are GMT +1. The time now is 03:07 PM.

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"