Returning a Value From A Drop Down List

Darth_Williams

New Member
Joined
Oct 15, 2015
Messages
25
Good morning all,

I have a dependant drop down list working at the moment where the first list shows suppliers and the second shows the items that supplier has. I am trying to work it so that once an item has been selected the value will automatically populate in another column. I thought a simple VLOOKUP would solve this but I keep getting #REF ! return.

I have a theory that an Index Match might work but I have no idea how to work one of those.

Does anyone have any ideas?

Thanks
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I now have a working, but messy, formula which is:

=IF($C5="Shires",VLOOKUP($D5,Shires2,4,FALSE),IF($C5="Tarmac",VLOOKUP($D5,Tarmac2,4,FALSE),IF($C5="Keyline",VLOOKUP($D5,Keline2,4,FALSE),IF($C5="JamesBurrell",VLOOKUP($D5,JamesBurrell2,4,FALSE),""))))

The suppliers are, Shires, Tarmac, Keyline & JamesBurrell.

I have created tables for each which shows the item description, unit of measurement, value etc... which the above formula seems to like. I'm guessing that if it works I should leave it be
 
Upvote 0
Is this right "Keline2" or should it be "Keyline2"?
 
Upvote 0
it should be Keyline2 but I had a typo when I was naming the table and just decided to live with it as it's only me out of the people who will be using this sheet that understands that formula
 
Upvote 0
If you rename that table you could use
=IFERROR(VLOOKUP($D5,INDIRECT($C5&"2"),4,FALSE),"")

Although it's a volatile formula.
 
Upvote 0

Forum statistics

Threads
1,214,877
Messages
6,122,051
Members
449,064
Latest member
scottdog129

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