Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default flexible drop-down bars

Hello all,

I have this problem. In worksheet A I have two columns: one column
"variable", and one column "option". It could for example look like
this:
Age Old
Age Young
Age Unknown
Smoking Yes
Smoking No
etc.

Now, in worksheet B I have the same two columns "variable" and
"option", but they are empty. I would like to have a dropdown-function
for column "variable", in which you can select one of the variables
from worksheet A (age, smoking). Based on my selection, the options in
column "option" would then be either old-young-etc or yes-no, presented
in a drop-down bar.

Can this be done in Excel? I know how to make dropdown boxes, but I
don't know how to create them so that they work dynamically -
considering that both input in worksheet A and B are flexible.

Thanks for your advice.

Arjen

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default flexible drop-down bars

Hi

You have to use dynamic named ranges as data validation lists sources (you
have to use named ranges anyway when you want to refer in data validation
list to another sheet)

Insert Name Define
AgeList=OFFSET(A!$A$1,1,,COUNTA(A!$A:$A)-1,1)
HabitList=OFFSET(A!$B$1,1,,COUNTA(A!$B:$B)-1,1)

(I assumed you have column captions in A!A1:B1 - when not, then remove -1
from formulas)

Now define your data validation lists sources as
=AgeList
or
=HabitList


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


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
Standard Error Bars. A S-D Excel Discussion (Misc queries) 1 July 5th 06 11:52 AM
drop down then populate Candyk Excel Discussion (Misc queries) 3 June 4th 06 11:10 PM
Limit drop down list and linking to other info Intuit Excel Worksheet Functions 13 February 2nd 06 09:48 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM
advanced: synchronizing data value across two worksheet drop boxes mdhokie Excel Worksheet Functions 1 October 6th 05 08:46 PM


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