Solved

Cascading Drop-Down Menus In Excel for a Tracker

Posted on 2010-09-03
4
394 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
ID: 33600938
-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
ID: 33601135
-Polak,

Perhaps the attached file might help.

Patrick
dependant-dropdowns02.xls
0
 
LVL 1

Author Closing Comment

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

Expert Comment

by:patrickab
ID: 33618390
-Polak - Thanks for the points - Patrick
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

943 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

10 Experts available now in Live!

Get 1:1 Help Now