Using List/Combo Box with vLookup?

aldino

New Member
Joined
Nov 20, 2005
Messages
7
Ok what i need is a List/Combo box (not sure which one to use) that has the values 1-20, and when a certain value is selected, another cell shows the answer from a vlookup code, eg it searches for the number that is selected from the Box, and returns the value from another cell a few columns a long vertically.

EG.

If i select 20 from the box, another cell should have =VLOOKUP(20,B2:G43,6,TRUE)
if i select 10 it should be =VLOOKUP(10,B2:G43,6,TRUE)

Basically how can i link the value selected from the box, to do a certain code in another cell??

Thanks
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

acw

MrExcel MVP
Joined
Feb 13, 2004
Messages
4,814
Hi

You can have the output from the combobox placed in a cell (say A1) then you use that cell in the VLOOKUP formula

Code:
=VLOOKUP(A1,B2:G43,6,TRUE)

HTH

Tony
 
Upvote 0

Forum statistics

Threads
1,195,669
Messages
6,011,061
Members
441,580
Latest member
BornholmerBjarne

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
Top