Solved

Display drop down list in Excel

Posted on 2013-01-21
4
340 Views
Last Modified: 2013-01-21
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.

Thanks for your help.
airport---airline-table.xlsx
0
Comment
Question by:tomfolinsbee
  • 2
  • 2
4 Comments
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
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

by:tomfolinsbee
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

by:
Ingeborg Hawighorst earned 500 total points
ID: 38803453
Sorry, here is the latest:
airport---airline-table.xlsx
0
 

Author Closing Comment

by:tomfolinsbee
ID: 38803768
Thank you teylyn!
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

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
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…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

790 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