Solved

# Display drop down list in Excel

Posted on 2013-01-21
350 Views
Hello Experts

I would like to add drop down lists to the attached model.

1. Excel displays drop down list in Calculation!B9 containing Airports. Airports are listed on on the Air Freight!B1:B5

2. User selects Airport from the drop down list in B9

3. Excel displays drop down list in B13 containing Airlines that fly to the selected Airport. The list is on the AirFreight sheet.

4. User selects the desired Airline.

airport---airline-table.xlsx
0
Question by:tomfolinsbee
[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
• 2
• 2

LVL 50

Expert Comment

ID: 38803387
Hello,

create a range name with Formulas > Name Manager and call it Airport. The reference is

='AIR FREIGHT'!\$B\$2:\$B\$5

Then create a range name called Airlines with the formula

=INDEX('AIR FREIGHT'!\$N:\$N,MATCH(Calculation!\$B\$9,'AIR FREIGHT'!\$M:\$M,0)):INDEX('AIR FREIGHT'!\$N:\$N,MATCH(Calculation!\$B\$9,'AIR FREIGHT'!\$M:\$M,1))

In the cells use the range names for the data validation list source.

NOTE: the Airport/Airline table must be SORTED by Airport for this solution to work.

Also, if you want to clear the Airline field when the Airport changes, you will need a macro.

see attached.

cheers, teylyn
airport---airline-table.xlsx
0

Author Comment

ID: 38803441
Thanks tehlyn,

I see the first drop down list in B9 for selecting the Airport, but not the second one in B13 for selecting the available airlines, based on the airport selected in B9.

I'll give the instructions a try.

Cheers,

Tom
0

LVL 50

Accepted Solution

Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 500 total points
ID: 38803453
Sorry, here is the latest:
airport---airline-table.xlsx
0

Author Closing Comment

ID: 38803768
Thank you teylyn!
0

## Featured Post

Question has a verified solution.

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

### Suggested Solutions

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
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 will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
###### Suggested Courses
Course of the Month6 days, 3 hours left to enroll