2 Column Dropdown List That Must Match Dependent on Selection.

LibertyAvenger

New Member
Joined
Mar 27, 2022
Messages
10
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hi All,

I currently have a PO tracking sheet which requires both The vendor name and vendor id to be present on the sheet for each recorded purchase order.

What I am looking to accomplish is having users be able to make a selection from whichever column and have the corresponding data populate. So say for Example.

Row 4 Select “Vendor Name” under Vendor Name Column drop down list. This event triggers the matching vendor ID to populate in the vendor ID column.

The predicament is I need this to happen in both directions and change based on the current selection being made. I.e.

I selected the vendor name already but we’ve changed our mind. I know the vendor ID of the new selection and select vendor ID now the vendor name should change based on last input made.

Imagine Vlookup references cells like a mirror that reflects back the data set for that column. But obviously this isn’t a capable thing in excel alone which is why I believe there may be an elegant solution via VBA. I had seen something similar in this forum but I cannot find it again.

Sorry for the long post but if more information is needed I’ll do my best to respond a little more succinctly.
 
You can try using a free Excel add-in called "Search deList". Here:


Which part do you need an explanation?
If you're not familiar with "Worksheet Change Event" you can read this article:
I’m unfortunately not familiar with VBA at all. My way of understanding it is if you had to tell me a story in layman’s of what each line of code is doing. Sorry I’m probably asking for a lot here. I just feel it irresponsible to take code that you worked on and not learn to understand it better.
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I’m unfortunately not familiar with VBA at all.
Sorry, the code is a bit complex, so it's hard for me to explain it if you don't have basic knowledge of vba.
To understand the code you need to learn about these terms: Find, Function, ListObjects, Worksheet_Change, Application.EnableEvents.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,039
Members
449,063
Latest member
ak94

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top