Solved

Cascading Drop-Down Menus In Excel for a Tracker

Posted on 2010-09-03
4
390 Views
Last Modified: 2012-05-10
I'm sending out a tracker to several hunder people to fill out and so that the data is standardized I've done some drop-down menu data validation based on some menus I've defined on a different sheet in the same workbook.

For one of the drop downs "Org. Code" I'm wondering if it can eliminated some of the 50+ codes based what the user selects from the "Org. Title" menu.

Basically every Org. Title matches up to 1-3 Org. Codes it would be alot easier if the user only had to choose from the 1-3 relevant Org. Codes rather than the 50+.
0
Comment
Question by:-Polak
  • 2
4 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 250 total points
Comment Utility
-Polak,

Please see the attached file. I used Data Validation to create the dropdowns on the Data Entry worksheet, and put in some dummy Org Titles and Org Codes on the Lookup worksheet.

The key to making this work is using dynamic Names, such as:

OrigTitles
refers to: =Lookup!$A$2:INDEX(Lookup!$A:$A,MATCH("ZZZZZZZ",Lookup!$A:$A))

GetOrgCodes
refers to: =INDEX(Lookup!$D:$D,MATCH('Data Entry'!A1,Lookup!$C:$C,0)):INDEX(Lookup!$D:$D,MATCH('Data Entry'!A1,Lookup!$C:$C,0)+COUNTIF(Lookup!$C:$C,'Data Entry'!A1)-1)

I then used the Names as the source for List-type data validation.

If you update the org titles/codes, just be sure that all codes for a particular title be on consecutive rows.

Patrick
Q-26451367.xlsx
0
 
LVL 45

Assisted Solution

by:patrickab
patrickab earned 250 total points
Comment Utility
-Polak,

Perhaps the attached file might help.

Patrick
dependant-dropdowns02.xls
0
 
LVL 1

Author Closing Comment

by:-Polak
Comment Utility
Both solutions are technically correct, but patrickab's is easier to follow.
0
 
LVL 45

Expert Comment

by:patrickab
Comment Utility
-Polak - Thanks for the points - Patrick
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now