VLOOKUP across 6 tables

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
956
Office Version
  1. 365
Platform
  1. Windows
I am having trouble with this formula. Any help is appreciated:

A VLOOKUP across 6 tables. Here is my formula but saying too many arguments:

=IFERROR(VLOOKUP(A2,Table_Fixtures,5,0),VLOOKUP(A2,Table_Lamps,4,0),VLOOKUP(A2,Table_Accessory,4,0),VLOOKUP(A2,Table_Controls,3,0),VLOOKUP(A2,Table_Materials,4,0),VLOOKUP(A2,Table_Rental,4,0))))))))
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Is the lookup value mutually exclusive from the other tables?
Here is my attempt, using VSTACK to create a single lookup range.
But if the value in A2 is not exclusive to one table you will not get all the results you seek.


Mr excel questions 53.xlsm
ABCDEFGHIJ
13
2B
3
4Table_FixturesTable_Controls
5Col1Col2Col3Col4Col1Col2Col3Col4
6A456A899
7B163B587
8
9
10Table_LampsTable_Materials
11Col1Col2Col3Col4Col1Col2Col3Col4
12A679A857
13B902B877
14
15
16Table_accessoryTable_Rental
17Col1Col2Col3Col4Col1Col2Col3Col4
18A796A755
19B597B678
thewiseguy
Cell Formulas
RangeFormula
A1A1=IFERROR(VLOOKUP(A2,VSTACK(Table_Fixtures,Table_Lamps,Table_accessory,Table_Controls,Table_Materials,Table_Rental),4,0),"")
 
Upvote 0
the VLOOKUP is supposed to look over 6 different tables. i tried this with the VSTACK function but i was only getting the proper results from column A. none of the other columns were populating correctly.
 
Upvote 0
The return column numbers of all your tables are different, do they at least have the same header or something?
 
Upvote 0
the VLOOKUP is supposed to look over 6 different tables. i tried this with the VSTACK function but i was only getting the proper results from column A. none of the other columns were populating correctly.

I do not understand what you mean. Mr Excel has a tool called xl2bb add in (link below) where you can share a mini worksheet.

As far as VSTACK, in the below image I have VSTACKed all 6 table. I changed Header column data to demonstrate that the VSTACK reads all the tables.
And as you can see the syntax i've used is also functional.

If this is not what you expect, please explain in detail what you want and give some examples.

Mr excel questions 53.xlsm
ABCDEFGHIJ
17
2H
3
4=VSTACK(Table_Fixtures,Table_Lamps,Table_accessory,Table_Controls,Table_Materials,Table_Rental)
5A456
6B163
7C679
8D902
9D796
10E597
11F899
12G587
13H857
14I877
15J755
16K678
17
18
19Table_FixturesTable_Controls
20Col1Col2Col3Col4Col1Col2Col3Col4
21A456F899
22B163G587
23
24
25Table_LampsTable_Materials
26Col1Col2Col3Col4Col1Col2Col3Col4
27C679H857
28D902I877
29
30
31Table_accessoryTable_Rental
32Col1Col2Col3Col4Col1Col2Col3Col4
33D796J755
34E597K678
thewiseguy
Cell Formulas
RangeFormula
A1A1=IFERROR(VLOOKUP(A2,VSTACK(Table_Fixtures,Table_Lamps,Table_accessory,Table_Controls,Table_Materials,Table_Rental),4,0),"")
A4A4=FORMULATEXT(A5)
A5:D16A5=VSTACK(Table_Fixtures,Table_Lamps,Table_accessory,Table_Controls,Table_Materials,Table_Rental)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,666
Members
449,114
Latest member
aides

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