VLOOKUP with Column Letter

Nanogirl21

Active Member
Joined
Nov 19, 2013
Messages
331
Office Version
  1. 365
Platform
  1. Windows
Is there any w/ay to write a VLOOKUP that will return the value in a specific column that is identified by a letter instead of the number of cells from a refrence point?

I hope my quiestion makes sense. I had a diffifuclt time trying to come up with the correct words

EXAMPLE:

CURRENT VLOOKUP:
Code:
=VLOOKUP(B16,Apples!B:Z,[B]17[/B],FALSE)

WANTED RESULTS SOMETHING LIKE:
Rich (BB code):
=VLOOKUP(B16,Apples!B:Z,Column R,FALSE)
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Yes, should be 18 not 17. That was a mistake.

I do have headers. The headers in all columns of the first row. R1 is called Comments.

That's great...

=VLOOKUP(B16,Apples!B:Z,MATCH("Comments",INDEX(
Apples!B:Z,1,0),0),0)

The last two zero's are another way of saying FALSE.
 
Upvote 0
How does this version know what column to look in? Is it always the last column refrencd in the range? If I want to use the same formula but return the value of column G would I use COLUMNS(B:G)?
Yes, this is correct -- you would use COLUMNS(B:G) to return value from column G. Important thing is to use the same start column as your table array:

=VLOOKUP(B16,Apples!B:Z,COLUMNS(B:G),FALSE)
 
Upvote 0

Forum statistics

Threads
1,216,581
Messages
6,131,544
Members
449,654
Latest member
andz

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