Link to home
Start Free TrialLog in
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
ASKER CERTIFIED SOLUTION
Avatar of byundt
byundt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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),"")
Avatar of dm7733
dm7733

ASKER

Fully met requirements.