Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel data validation multiple lists

Hello, I am using Excel 97 for windows and working with data validation, settings,allow:list

I am trying to do the following

In one cell, the user selects from a list created via validation. For example, the cell will have a pull down list that gives the choices "A", "B", "C", "D", etc

Then, in another cell, based upon which choice was selected above, a pull down list via validation should appear that is unique to the choice selected above. So, if "A" was previously selected, then in this cell, a validation list would appear with various choices based upon choosing "A" previously. For example, if "A" was selected previously, then in this cell, a validation list would appear that has the values "100,200,400,500" to choose from. If "B" was selected previously, then this cell would have the values "100,200,750,900,1200,1500,etc." to chose from. I have my data arranged in various columns, but I do not know how to get the second cell to choose the proper column based upon the first cell's selection

How do I create the entry for the second cell which will choose a list based upon a previous cell's entry ? I have tried to enter a formula under "data validation/settings/allow:list/source" but it won't accept a formula (if/then statement)

Any help would be greatly appreciated. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Excel data validation multiple lists

Brian

Here's one way to do it:

A1 is the cell to hold the list A, B, C, .....
B1 will hold the chosen validation list.

Assuming 3 namelists, one in K3:K10, one in L3:L10
and the last one in M3:M10.

1. Select K3:M10 and name it "NameRange" (without quotes)
Use the namebox at the far left of the formula bar.
2. Select B1 and choose Data Datavalidation
3. Choose "List" in "Allow"
4. In "Source" enter this formula:
=OFFSET(NameRange,0,CODE($A$1)-65,COUNTA(
OFFSET(NameRange,0,CODE($A$1)-65,,1)),1)
5. OK.

If the lists vary in length and possible empty cells don't occur "in the
middle" of the lists, this setup will only display the non-empty cells.

If you enter A in A1, the list to choose from in B1 will be K3:K10,
if you enter B, the list will be L3:L10 and so on.


--
Best Regards
Leo Heuser

Followup to newsgroup only, please.


"Brian J Cassidy" skrev i en
meddelelse ...
Hello, I am using Excel 97 for windows and working with data validation,

settings,allow:list.

I am trying to do the following:

In one cell, the user selects from a list created via validation. For

example, the cell will have a pull down list that gives the choices "A",
"B", "C", "D", etc.

Then, in another cell, based upon which choice was selected above, a pull

down list via validation should appear that is unique to the choice selected
above. So, if "A" was previously selected, then in this cell, a validation
list would appear with various choices based upon choosing "A" previously.
For example, if "A" was selected previously, then in this cell, a validation
list would appear that has the values "100,200,400,500" to choose from. If
"B" was selected previously, then this cell would have the values
"100,200,750,900,1200,1500,etc." to chose from. I have my data arranged in
various columns, but I do not know how to get the second cell to choose the
proper column based upon the first cell's selection.

How do I create the entry for the second cell which will choose a list

based upon a previous cell's entry ? I have tried to enter a formula under
"data validation/settings/allow:list/source" but it won't accept a formula
(if/then statement).

Any help would be greatly appreciated. Thanks.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel data validation multiple lists


Thanks for the reply, it worked
----- Leo Heuser wrote: ----

Bria

Here's one way to do it

A1 is the cell to hold the list A, B, C, ....
B1 will hold the chosen validation list

Assuming 3 namelists, one in K3:K10, one in L3:L1
and the last one in M3:M10

1. Select K3:M10 and name it "NameRange" (without quotes
Use the namebox at the far left of the formula bar
2. Select B1 and choose Data Datavalidatio
3. Choose "List" in "Allow
4. In "Source" enter this formula
=OFFSET(NameRange,0,CODE($A$1)-65,COUNTA
OFFSET(NameRange,0,CODE($A$1)-65,,1)),1
5. OK

If the lists vary in length and possible empty cells don't occur "in th
middle" of the lists, this setup will only display the non-empty cells

If you enter A in A1, the list to choose from in B1 will be K3:K10
if you enter B, the list will be L3:L10 and so on


--
Best Regard
Leo Heuse

Followup to newsgroup only, please


"Brian J Cassidy" skrev i e
meddelelse ..
Hello, I am using Excel 97 for windows and working with data validation

settings,allow:list
I am trying to do the following
In one cell, the user selects from a list created via validation. Fo

example, the cell will have a pull down list that gives the choices "A"
"B", "C", "D", etc
Then, in another cell, based upon which choice was selected above, a pul

down list via validation should appear that is unique to the choice selecte
above. So, if "A" was previously selected, then in this cell, a validatio
list would appear with various choices based upon choosing "A" previously
For example, if "A" was selected previously, then in this cell, a validatio
list would appear that has the values "100,200,400,500" to choose from. I
"B" was selected previously, then this cell would have the value
"100,200,750,900,1200,1500,etc." to chose from. I have my data arranged i
various columns, but I do not know how to get the second cell to choose th
proper column based upon the first cell's selection
How do I create the entry for the second cell which will choose a lis

based upon a previous cell's entry ? I have tried to enter a formula unde
"data validation/settings/allow:list/source" but it won't accept a formul
(if/then statement)
Any help would be greatly appreciated. Thanks





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Excel data validation multiple lists

You're welcome.

LeoH

"Brian J Cassidy" skrev i en
meddelelse ...

Thanks for the reply, it worked !



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Excel data validation multiple lists

First, create the lists you want to use somewhere on the spreadsheet, and
name each one - so the list you name "A" would contain 4 cells, with the
values "100,200,400,500" and so on.
Assume the cell containing the first list (A, B, etc) is cell A1.
Then, in the cell that is to contain this second list, in the data
validation formula enter "=Indirect(A1)"

That should do the trick.
--
Darren
"Brian J Cassidy" wrote in message
...
Hello, I am using Excel 97 for windows and working with data validation,

settings,allow:list.

I am trying to do the following:

In one cell, the user selects from a list created via validation. For

example, the cell will have a pull down list that gives the choices "A",
"B", "C", "D", etc.

Then, in another cell, based upon which choice was selected above, a pull

down list via validation should appear that is unique to the choice selected
above. So, if "A" was previously selected, then in this cell, a validation
list would appear with various choices based upon choosing "A" previously.
For example, if "A" was selected previously, then in this cell, a validation
list would appear that has the values "100,200,400,500" to choose from. If
"B" was selected previously, then this cell would have the values
"100,200,750,900,1200,1500,etc." to chose from. I have my data arranged in
various columns, but I do not know how to get the second cell to choose the
proper column based upon the first cell's selection.

How do I create the entry for the second cell which will choose a list

based upon a previous cell's entry ? I have tried to enter a formula under
"data validation/settings/allow:list/source" but it won't accept a formula
(if/then statement).

Any help would be greatly appreciated. Thanks.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel data validation multiple lists

Thanks for the reply, that is what I was looking for

----- Darren Hill wrote: ----

First, create the lists you want to use somewhere on the spreadsheet, an
name each one - so the list you name "A" would contain 4 cells, with th
values "100,200,400,500" and so on
Assume the cell containing the first list (A, B, etc) is cell A1
Then, in the cell that is to contain this second list, in the dat
validation formula enter "=Indirect(A1)

That should do the trick
--
Darre
"Brian J Cassidy" wrote in messag
..
Hello, I am using Excel 97 for windows and working with data validation

settings,allow:list
I am trying to do the following
In one cell, the user selects from a list created via validation. Fo

example, the cell will have a pull down list that gives the choices "A"
"B", "C", "D", etc
Then, in another cell, based upon which choice was selected above, a pul

down list via validation should appear that is unique to the choice selecte
above. So, if "A" was previously selected, then in this cell, a validatio
list would appear with various choices based upon choosing "A" previously
For example, if "A" was selected previously, then in this cell, a validatio
list would appear that has the values "100,200,400,500" to choose from. I
"B" was selected previously, then this cell would have the value
"100,200,750,900,1200,1500,etc." to chose from. I have my data arranged i
various columns, but I do not know how to get the second cell to choose th
proper column based upon the first cell's selection
How do I create the entry for the second cell which will choose a lis

based upon a previous cell's entry ? I have tried to enter a formula unde
"data validation/settings/allow:list/source" but it won't accept a formul
(if/then statement)
Any help would be greatly appreciated. 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
Excel -- Data Validation -- Create Dependent Lists Louisa Excel Worksheet Functions 6 October 9th 09 03:27 AM
Data Validation - Multiple Dependent Lists Lisa C. Excel Discussion (Misc queries) 4 March 11th 09 02:31 AM
Linked Lists / Data Validation - Excel 97 Phendrena Excel Worksheet Functions 1 July 7th 08 06:49 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM
Printing Multiple Data Validation Lists MWS Excel Worksheet Functions 5 March 28th 06 11:34 PM


All times are GMT +1. The time now is 01:51 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"