vlookup on several columns

ddesantis

New Member
Joined
Aug 30, 2014
Messages
14
Hi,
I have a unique identifier and I need to look for it across multiple tables; all these tables are in a single tab.
Once I find this ID I always need to get the +2 column number

I tried
- vlookup, but the ID has always to be on the first column, and this is not the case
- Index and match but I've to generate multiple index and match and specify exactly the columns where the possible result is.
Hope I've been clear, please let me know if you can help
Thanks
Daniele
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Are the column headers consistantly named? you could use that as the premise to grab the appropriate column to lookup against.
 
Upvote 0
yea than you can use a match function to target that column in a index match:

Index(DataArray,Match(ID, RowLabelArray,0),Match("ColumnHeader", ColumnLabelArray,0))

You could do a similar method with an lookup/index/match
 
Upvote 0
I don't know where to start the "RowLabelArray" and the "ColumnLabelArray" from

- RowLabelArray: is from the first row where I can find the ID to the last? let's say I5:I100
- ColumnLabelArray:is from the first column where I can find the ID to the last? let's say I5:Z5
 
Upvote 0
entity 1entity 2entity 3
vlookupvalueparametervlookupvalueparametervlookupvalueparameter
entity1USD30%entity2USD40%entity3USD50%

<tbody>
</tbody>

I made it works; but it seems only looking at one column only

the one above is sheet1

In sheet 2 I have the follows
- entity2USD
- entity3USD
and In sheet 2 I need to associate these with the relative parameter, such us
entity2USD40%
entity3USD50%

<tbody>
</tbody>
 
Upvote 0
I don't know where to start the "RowLabelArray" and the "ColumnLabelArray" from

- RowLabelArray: is from the first row where I can find the ID to the last? let's say I5:I100
- ColumnLabelArray:is from the first column where I can find the ID to the last? let's say I5:Z5


RowLabelArray would be your ID's you're looking up.
ColumnLabelArray would be your column headers.
 
Upvote 0
Thanks,
but I cannot still work out how to make it work on different columns. See the example above

Not sure if i'm following your sample.
Some things to consider:
-It appears that you have multiple column headers; consider consolidating them and using a similar match function as above.
-Alternatively, create named ranges for each entity and use an index/indirect/match
 
Upvote 0
Each entity is a table made of 2 columns vlookup and parameter. Vlookup and Parameter are column headers consistent across all tables

How canI create named ranges?
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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