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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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