Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default drop down list dependant of previous selection

I have a small database for receipts, there are many groups of accounts and
in each group is multiple accounts. I wish to select the 'parent' in the
first drop down box, and then have the second drop down box populated with
only the 'children' that belong to it. The lists are on a separate sheet to
the drop down boxes.

Parent Code Child
Code
travel and expences 5100 Local travel 100
overseas
200
Vehicle
300

Facilities - other 5225 Chem waste 020
general waste
50
bio waste
030

As well as this, i need the code to be brought up as well, but i figure that
I can just use a lookup function, but the first bit is proving to be easy for
the parent, but dificult for the child.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default drop down list dependant of previous selection

Hi,

Here are the steps for creating a dynamic data validation list:

1. Create three or more list in the spreadsheet. For example:
A B C
New York Quebec Canada
Seattle Toronto US
Miami Victoria

You would name lists: US (A1:A3), Canada (B1:B3), Countries (C1:C2) this
last is optional

2. Select the cell where you want the initial validation list, for this
example, D1
3. Choose Data, Validation
4. From the Allow drop-down and choose List
5. In the Source box enter the following formula
=Countries
6. Move to the location where you want the dynamic (changing) list to
appear, say for example E1
7. Choose Data, Validation, List and in the Source box enter the formula
=INDIRECT(D1)

You can also make a self-referential dynamic data validation list.

If this helps, please click the Yes button.

Cheers,
Shane Devenshire

"The Fru Fru" wrote:

I have a small database for receipts, there are many groups of accounts and
in each group is multiple accounts. I wish to select the 'parent' in the
first drop down box, and then have the second drop down box populated with
only the 'children' that belong to it. The lists are on a separate sheet to
the drop down boxes.

Parent Code Child
Code
travel and expences 5100 Local travel 100
overseas
200
Vehicle
300

Facilities - other 5225 Chem waste 020
general waste
50
bio waste
030

As well as this, i need the code to be brought up as well, but i figure that
I can just use a lookup function, but the first bit is proving to be easy for
the parent, but dificult for the child.


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 dependant on previous drop down list Tenacioushail Excel Discussion (Misc queries) 1 July 1st 08 11:35 AM
Create new drop down from previous drop down selection Supe Excel Discussion (Misc queries) 3 January 19th 07 10:26 PM
Show data dependant on selection from drop down box ukplay Excel Worksheet Functions 1 May 15th 06 04:49 PM
adding to different totals dependant upon selection from drop down Shaunnyb Excel Worksheet Functions 0 April 4th 06 10:00 PM
Making pick list conditional on selection from previous pick list Stewart Excel Discussion (Misc queries) 1 June 27th 05 11:30 AM


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