Avatar of dm7733
dm7733
 asked on

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.
ExampleFile.xlsx
Microsoft Excel

Avatar of undefined
Last Comment
dm7733

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
byundt

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
byundt

If the stop names aren't unique, then you can use the following formula in cell C2:
=IFERROR(VLOOKUP(B2,OFFSET(INDEX(StopList,MATCH(A2,INDEX(StopList,,1),0),1),0,1,COUNTIF(INDEX(StopList,,1),A2),2),2,FALSE),"")
dm7733

ASKER
Fully met requirements.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck