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
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,428
Messages
6,119,420
Members
448,895
Latest member
omarahmed1

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