SOLVED

Drop Down List with Linked Columns

%3CLINGO-SUB%20id%3D%22lingo-sub-1349280%22%20slang%3D%22en-US%22%3EDrop%20Down%20List%20with%20Linked%20Columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349280%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20figure%20out%20how%20to%20create%20a%20drop%20down%20list%20with%20multiple%20linked%20columns%3B%20but%20let%20me%20explain%20as%20it%20is%20different%20from%20what%20I%20am%20seeing%20on%20the%20forum%20and%20other%20sites.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20worksheet%20in%20the%20data%20base%20with%20vendor%20contact%20information.%20It%20has%204%20columns%3A%3C%2FP%3E%3CP%3EVendor%20Name%3C%2FP%3E%3CP%3EContact%20Name%3C%2FP%3E%3CP%3EEmail%3C%2FP%3E%3CP%3EPhone%20Number%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20another%20worksheet%20with%20Purchase%20Information%2C%20with%20the%20same%20four%20columns.%20I%20want%20to%20know%20how%20I%20can%20create%20a%20drop%20down%20list%20in%20this%20worksheet%20that%20will%20allow%20one%20to%20select%20the%20%22Vendor%20name%22%20from%20a%20drop%20down%20list%2C%20and%20once%20it%20is%20selected%20then%20the%20other%203%20columns%20would%20populate%20with%20the%20respective%20information%20from%20the%20vendor%20contact%20worksheet.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20the%20spreadsheet%20as%20reference.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20this%20possible%3F%20And%20if%20so%2C%20how%20would%20I%20go%20about%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1349280%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1349342%22%20slang%3D%22en-US%22%3ERe%3A%20Drop%20Down%20List%20with%20Linked%20Columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349342%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F349610%22%20target%3D%22_blank%22%3E%40bengal1022%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'd%20create%20two%20named%20ranges%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20551px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F187797iD585A6C97109C86D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eone%20for%20data%20validation%20list%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3D'Vendor%20Contacts'!%24A%242%3AINDEX('Vendor%20Contacts'!%24A%3A%24A%2CCOUNTA('Vendor%20Contacts'!%24A%3A%24A))%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Eand%20another%20for%20vendor%20info%20range%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3D'Vendor%20Contacts'!%24B%242%3AINDEX('Vendor%20Contacts'!%24D%3A%24D%2CCOUNTA('Vendor%20Contacts'!%24A%3A%24A))%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Eusing%20first%20in%20data%20validation%20and%20second%20to%20pickup%20the%20info%20as%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIFNA(INDEX(VendorsRange%2CMATCH(%24L2%2CVendorsList%2C0)%2CMATCH(M%241%2C'Vendor%20Contacts'!%24B%241%3A%24D%241%2C0))%2C%22%22)%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1349432%22%20slang%3D%22en-US%22%3ERe%3A%20Drop%20Down%20List%20with%20Linked%20Columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349432%22%20slang%3D%22en-US%22%3EThanks%20Sergei.%20Works%20like%20a%20charm.%20You're%20a%20lifesaver.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1349517%22%20slang%3D%22en-US%22%3ERe%3A%20Drop%20Down%20List%20with%20Linked%20Columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349517%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F349610%22%20target%3D%22_blank%22%3E%40bengal1022%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1349718%22%20slang%3D%22en-US%22%3ERe%3A%20Drop%20Down%20List%20with%20Linked%20Columns%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349718%22%20slang%3D%22en-US%22%3ESelect%20the%20cell%20where%20you%20want%20the%20first%20(main)%20drop%20down%20list.%3CBR%20%2F%3EGo%20to%20Data%20%E2%80%93%26gt%3B%20Data%20Validation.%20...%3CBR%20%2F%3EIn%20the%20data%20validation%20dialog%20box%2C%20within%20the%20settings%20tab%2C%20select%20List.%3CBR%20%2F%3EIn%20Source%20field%2C%20specify%20the%20range%20that%20contains%20the%20items%20that%20are%20to%20be%20shown%20in%20the%20first%20drop%20down%20list.%3CBR%20%2F%3EClick%20OK.%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello:

 

I am trying to figure out how to create a drop down list with multiple linked columns; but let me explain as it is different from what I am seeing on the forum and other sites. 

 

I have a worksheet in the data base with vendor contact information. It has 4 columns:

Vendor Name

Contact Name

Email

Phone Number

 

I have another worksheet with Purchase Information, with the same four columns. I want to know how I can create a drop down list in this worksheet that will allow one to select the "Vendor name" from a drop down list, and once it is selected then the other 3 columns would populate with the respective information from the vendor contact worksheet. 

 

I have attached the spreadsheet as reference.

 

Is this possible? And if so, how would I go about it?

 

Thanks

 

4 Replies
best response confirmed by bengal1022 (Occasional Contributor)
Solution

@bengal1022 

I'd create two named ranges

image.png

one for data validation list

='Vendor Contacts'!$A$2:INDEX('Vendor Contacts'!$A:$A,COUNTA('Vendor Contacts'!$A:$A))

and another for vendor info range

='Vendor Contacts'!$B$2:INDEX('Vendor Contacts'!$D:$D,COUNTA('Vendor Contacts'!$A:$A))

using first in data validation and second to pickup the info as

=IFNA(INDEX(VendorsRange,MATCH($L2,VendorsList,0),MATCH(M$1,'Vendor Contacts'!$B$1:$D$1,0)),"")
Thanks Sergei. Works like a charm. You're a lifesaver.

Best

@bengal1022 

You are welcome

Select the cell where you want the first (main) drop down list.
Go to Data –> Data Validation. ...
In the data validation dialog box, within the settings tab, select List.
In Source field, specify the range that contains the items that are to be shown in the first drop down list.
Click OK.