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
Solved

Cascading Drop-Down Menus In Excel for a Tracker

Posted on 2010-09-03
4
399 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

789 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