Dropdown list multiple column

john5599

Board Regular
Joined
Mar 11, 2010
Messages
222
Hi please need a help.


I have a excel sheet as given below. I need to make a drop down list of that, when I select item name from the dropdown list , item code also come in the next column. Is it possible .

Sheet1
AB
1Item NameCode
2TRIM CLIP ON LED PANEL 6W 6500KLHEAABP7IL1W006
3TRIM CLIP ON LED PANEL 12W 6500KLHEAABP7IL1W012
4TRIM CLIP ON LED PANEL 18W 6500KLHEAABP7IL1W018
5LED ADORE 10W B22 CDL 3STAR LAMPLHLDEUEEML8R010
6LED ADORE 9W B22 CDL 3 STAR LAMPLHLDEUEEML8R009
7TRIM CLIP ON PANEL 24W 6500KLHEAABP7IL1W024
8TRIM CLIP ON LED PANEL 6 W 4000KLHEAABP6IL1W006

<thead>
</thead><tbody>
</tbody>
Excel 2007
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Assuming you know how to create the drop-down list from, say, column A...
Let's say that's in D1. then, in E1, write:

Code:
=VLOOKUP(D1,A2:B8,2,FALSE)

Does that do it?
 
Upvote 0
How many Item Name do you have? If you have a lot, say more than 100, then instead of data validation I suggest you use a searchable combobox, so for example, if you type ‘lamp’ in the combobox then only items with ‘lamp’ will be shown.
As for filling the next column with the item code, it can be done using ‘Worksheet_Change’ event.
If you’re interested in this method, just let me know, I can create an example for you.
You can try the searchable combobox example (but without filling the next column part) in this thread:
https://www.mrexcel.com/forum/excel-questions/1089693-data-entry-force-selection.html
 
Upvote 0
Sir, Item_Master is in sheet named Master and dropdown list need to be in Data2 Sheet column H(Item Name) column I(Item Code). so how VLOOKUP FOURMULA WILL CHANGE.
 
Upvote 0
Good I am interested I am here attached link of my sample sheet, please do the needful.

https://www.dropbox.com/s/c9s57ebquxwpy1k/Book555.xlsx?dl=0

Ok, here’s an example:
https://www.dropbox.com/s/2w9an0lriz53nfm/Book555 - searchable combobox.xlsm?dl=0

Note:

  • The combobox will be used in range "H2:H20", you may change that in this part of the code:
Code:
'range where you want to use the combobox (blue area)
Private Const xCell As String = "H2:H20"

  • I use vlookup formula in col I sheet Data2, you may change it to suit.


  • To understand how the searchable combobox work you can read the instruction in the sample workbook :
https://www.dropbox.com/s/t1sbmp3lm...t to cell, search as type - example.xlsm?dl=0
 
Upvote 0
Thank you for your great help.:rolleyes::rolleyes::rolleyes::rolleyes: and your kind response

Can we hide #N/A in VLOOKUP field

You can replace the formula with this:
Code:
=IFERROR(VLOOKUP(H2,Master!A$2:B$10000,2,FALSE),"")
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,375
Members
448,955
Latest member
BatCoder

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