VLOOKUP when table_array is a Table

kopp123

New Member
Joined
Apr 7, 2014
Messages
9
Is there an easy way to connect VLOOKUP from defined Table to another defined Table? Is there a better function to do this? I'm trying to get away from using relative cell/column locations.

When I do a VLOOKUP in a table and reference another table, I get something like the following:
=VLOOKUP([@[Favorite Fruit]],Fruit[[Fruit]:[Cost]],2,FALSE)

What I'd like to be able to do is identify the following in a function:

  • lookup_value: @[Favorite Fruit]
  • table_array: Fruit[#all]
  • lookup_column: Fruit[Fruit]
  • return_column: Fruit[Cost]

Is there a function that does something like that? Or is there a way to make VLOOKUP work that way?
 

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
How about
=INDEX(Fruit1[Cost],MATCH([@[Fravorite Fruit]],Fruit1[Fruit],0))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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