Vlookup

jcijames

New Member
Joined
Dec 1, 2009
Messages
4
Is there a way to use the vlookup table for multiple table_arrays?

For instance I want to look up a paygrade (32) but I want to serch through various salary grade tables based on different cities.

I tried =vlookup(32,B10,d2)

32 = salary grade
b10 = a cell reference to the salary table I want it to lookup (I have 7 total) then the d2 is a cell reference to the number of columns to lookup.

Thanks
 

Some videos you may like

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
Like this, maybe
Code:
  A        B      C       D        E      
1          Dallas Houston New York Denver 
2 25       5      6       7        8      
3 32       6      6       8        8      
4 44       6      7       7        9      
5 56       7      7       8        8      
6                                         
7                                         
8 32              8                       
9 New York                                
Sheet1
[Table-It] version 09 by Erik Van Geit
Code:
RANGE FORMULA 
C8    =INDEX(B2:E5,MATCH(A8,A2:A5,0),MATCH(A9,B1:E1,0))
[Table-It] version 09 by Erik Van Geit
where Ae contains the Paygrade and A9 contains the City
HTH
lenze
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
Is there a way to use the vlookup table for multiple table_arrays?

For instance I want to look up a paygrade (32) but I want to serch through various salary grade tables based on different cities.

I tried =vlookup(32,B10,d2)

32 = salary grade
b10 = a cell reference to the salary table I want it to lookup (I have 7 total) then the d2 is a cell reference to the number of columns to lookup.

Thanks

If B10 houses a name defined to refer to a range with a relevant table and the definition is not done with OFFSET, etc...

=VLOOKUP(32,INDIRECT(B10),D2,1)

assuming that those tables are all sorted in ascending order in the appropriate manner.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,224
Messages
5,594,915
Members
413,952
Latest member
JGer

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
Top