?
Solved

Create a dependent drop down list

Posted on 2012-03-20
4
Medium Priority
?
211 Views
Last Modified: 2012-06-27
Is it possible to create two drop down list such that the 1st list will show the category and the second list will only show the account under the selected category in 1st list box ?
However, I don't want to name each category and account in a name range as the rows are always changing.


Category                    Account
--------------                  -------------  
O&M Costs      O&M Contract
O&M Costs      R&M Labour
O&M Costs      R&M Materials
Salaries & Benefits      Salaries
Salaries & Benefits      Bonuses
Salaries & Benefits      Pension Contribution
Salaries & Benefits      Health Insurance
Salaries & Benefits      Travel Insurance
Salaries & Benefits      Other Employee Benefits
Training, Development and Recruitment      Recruiter Fees
Training, Development and Recruitment      Job Advertising Fees
Training, Development and Recruitment      Other Recruitment Expenses
Training, Development and Recruitment      Training & Development
0
Comment
Question by:AXISHK
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:leptonka
ID: 37741546
Hi,
I this tutorial article you will find how to build up dependent lists:

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

Cheers,
Kris
0
 

Author Comment

by:AXISHK
ID: 37745475
Thanks, but how to dynamically modify the new rows within each category , without separting each category into different sheets ?
0
 
LVL 7

Accepted Solution

by:
leptonka earned 2000 total points
ID: 37750420
I created a sample file for you using tables.
You can add new categories + a sub-category table as you see on Sheet1. You need to write the table name of the sub-category table next to the newly added category. In the example I use table names as HV.1 , HV.2 etc.
In the validation formula for Subcategory I use a vlookup assuming that the Category choosen is in the same row but one column left - so for Subcategory in C4 it looks the Category in B4.
Hope it will help.
Cheers,
Kris
Validation-EE-1.xlsx
0
 

Author Closing Comment

by:AXISHK
ID: 37763871
Tks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question