Vlookup

smokemalls

New Member
Joined
Sep 14, 2005
Messages
22
=VLOOKUP(A:A,$A$1:$B$4,2)

The above looks up value in column A in range A1:B2 and returns value in column 2. Is it possible to look up value in collumn B in range A1:B4 and return value in column 1 eg;

=VLOOKUP(B:B,$A$1:$B$4,1)

This does not work though. Is there a way around this please???

Cheers
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
VLOOKUP always looks up a value in a table with the lookup column being column 1 so if you wnat a value from a column to the left of the look up column use a minus number eg. to look up a value to the left of the look up column enter -1 etc.
 
Upvote 0
StuLux said:
VLOOKUP always looks up a value in a table with the lookup column being column 1 so if you wnat a value from a column to the left of the look up column use a minus number eg. to look up a value to the left of the look up column enter -1 etc.

With Vlookup, the lookup value has to be within the left-most column in the range, I don't think -1 works.

You need the Index/Match combination:

Something like:
=INDEX($A$1:$B$4,MATCH(B1,$B$1:$B$4,0),1)
 
Upvote 0
Quite right, my mistake, I seemed to recall using minus numbers in a vlookup function before but I stand corrected.
 
Upvote 0

Forum statistics

Threads
1,214,534
Messages
6,120,080
Members
448,943
Latest member
sharmarick

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