Formula Help--XLOOKUP?

FoodYarnNerd

New Member
Joined
Jul 22, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I am trying to pull in data from one table into another and cannot figure out how to make it work.

I need to look up both the Material and the Size in a different table and then pull in the value into column V (first snip). However, the table that I need to pull from has the size information running across as column headers so a VLOOKUP will not work (second snip). I was hoping XLOOKUP or INDEX-MATCH would give me what I need but I cannot seem to get any formula to work here. Am I missing something obvious?

Thanks so much for any assistance!

1626969934880.png


1626970260595.png
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Place the formula below in column V

=INDIRECT("R"&MATCH(T8,$A$1:$A$3,0)&"C"&MATCH(U8,$A$1:$Q$1,0),FALSE)
 
Upvote 0
Hi & welcome to MrExcel.
Another option without volatile functions
Excel Formula:
=INDEX($A$2:$Q$100,MATCH(T2,$A$2:$A$100,0),MATCH(U2,$A$1:$Q$1,0))
 
Upvote 0
Hi & welcome to MrExcel.
Another option without volatile functions
Excel Formula:
=INDEX($A$2:$Q$100,MATCH(T2,$A$2:$A$100,0),MATCH(U2,$A$1:$Q$1,0))

Okay, follow up question--if the table from the second snip is on a different sheet in the same workbook, how does that change what the formula should say? I tried to plug and play what I thought I should put in there and it still errored out.

I appreciate your help! :)
 
Upvote 0
What is the name of the other sheet?
 
Upvote 0
Just replace Sheet4 with name of the other sheet and adjust range rows and cols

Rich (BB code):
=INDEX($A$1:$Q$3,MATCH(T7,Sheet4!$A$1:$A$3,0),MATCH(U7,Sheet4!$A$1:$Q$1,0))
 
Upvote 0
In that case it would be
Excel Formula:
=INDEX(Sheet1!$A$2:$Q$100,MATCH(T2,Sheet1!$A$2:$A$100,0),MATCH(U2,Sheet1!$A$1:$Q$1,0))
 
Upvote 0
In that case it would be
Excel Formula:
=INDEX(Sheet1!$A$2:$Q$100,MATCH(T2,Sheet1!$A$2:$A$100,0),MATCH(U2,Sheet1!$A$1:$Q$1,0))


This is still throwing an #N/A error--I've tried all my typical fixes as far as formatting the cells but it's still not pulling in the info. Is there something obvious I'm missing? (I swear I'm not a total n00b, LOL)
 
Upvote 0
Is the data on sheet1 in a structured table, or just a normal range?
 
Upvote 0

Forum statistics

Threads
1,214,999
Messages
6,122,645
Members
449,093
Latest member
Ahmad123098

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