Excel Drop Down Lists

I have to give users an excel sheet where they can select data and be presented with drop down lists that are updated based on previous selections. See attached file, which I’ll use for explaining the requirement.
The Main worksheet contains 3 columns: Route, Stop Name and Stop Number. This is the worksheet that users will interact with.
The Data worksheet contains the source data.

The following is what I’m hoping to achieve;
In the Main worksheet, in column A under route, the user should be presented with a drop down list containing a unique listing of routes from column A in the Data worksheet. The drop down list should present the following options: 10, 20, 30, 40

For example, let’s assume the user selects 10 as the route in cell A2 in the Main worksheet.
Now, when the user selects cell B2 in the Main worksheet, they should be presented with a drop down list which only includes the stop names for route 10 as follows;
Stop A, Stop B, Stop C, Stop D, Stop E

Once the user selects the stop name they require, the value in cell C2 should be automatically populated. For example, if the user selects Stop C, the value in cell C2 should be populated automatically with 301

I’d appreciate if you could update the attached workbook with the required formulas and functions to achieve this.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

byundtMechanical EngineerCommented:
I created named ranges StopList (your table on worksheet Data) and Routes (also on Data, and containing numbers 10, 20, 30 & 40). I then used these named ranges with Data Validation

in A2 with source

in B2 with source =OFFSET(INDEX(StopList,MATCH(A2,INDEX(StopList,,1),0),1),0,1,COUNTIF(INDEX(StopList,,1),A2),1)

The formula for C2 is

I then copied A2 and B2 and did a Paste Special...Validation in A2:B7 (the light gray shaded cells in the sample workbook).

Note: these formulas assume the following:
1. StopList is sorted by its first column
2. Stop names are unique

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
byundtMechanical EngineerCommented:
If the stop names aren't unique, then you can use the following formula in cell C2:
dm7733Author Commented:
Fully met requirements.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.