Finding a table value based on specified column and row headers

NPetersen

New Member
Joined
Nov 14, 2013
Messages
13
Hello,

I have a table that appears like this (The range may extend to further columns and rows later, but the headings will remain Location & Name):

Column A
Column B
Column C
Column D
Column E
Column Etc...
Row 3
Location 1
Location 2
Location 3
Etc...
Row 4
Allocator Name 1
$
$
$
Row 5
Allocator Name 2
$
$
$
Row 6
Allocator Name 3
$
$
$
Row Etc...
Allocator Name Etc...

<TBODY>
</TBODY>

In another worksheet I have a list of data with a column set which includes:

Column A
Column B
Column C
Row 1
Allocator Name
Location
$
Row 2
Row 3

<TBODY>
</TBODY>


What function/formula can I use in Column C to pull over the value corresponding to the allocator and location already entered in the corresponding row?

Thanks,

N
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
You could use a combination of INDEX and MATCH functions like this in sheet2 column C cells:

=INDEX(Sheet1!$B$3:$F$6,MATCH(A1,sheet1!$B4:$B6,0),MATCH(B1,sheet1!$C$3:$F$3,0))

where Allocator Name is A1 in the layout you show and Location is B1.
 
Upvote 0
You could use a combination of INDEX and MATCH functions like this in sheet2 column C cells:

=INDEX(Sheet1!$B$3:$F$6,MATCH(A1,sheet1!$B4:$B6,0),MATCH(B1,sheet1!$C$3:$F$3,0))

where Allocator Name is A1 in the layout you show and Location is B1.

Thanks again JoeMo - Initially it was not grabbing the right cell but perhaps that could be a communication error on my part. I substituted "$C$3" with "$B$3" in the second MATCH function and it worked perfectly.


-N
 
Upvote 0
Thanks again JoeMo - Initially it was not grabbing the right cell but perhaps that could be a communication error on my part. I substituted "$C$3" with "$B$3" in the second MATCH function and it worked perfectly.


-N
You are welcome - thanks for the reply.
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,512
Members
449,167
Latest member
jrob72684

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