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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
OK, in that case make sure that all the values in col U are text. To check you can put this in spare column & fill down
Excel Formula:
=istext(u2)
make sure they all say True
 
Upvote 0
OK, in that case make sure that all the values in col U are text. To check you can put this in spare column & fill down
Excel Formula:
=istext(u2)
make sure they all say True
Thanks.

Now it's just returning all zeroes.

This is the formula I actually have in my sheet:

=INDEX(Table1,MATCH([@Material],Table1[MATERIAL],0),MATCH([@[b2b qty]],Table1[#All],0))

What am I missing? Would it be helpful to see any more snips or to have additional information?

Thank you!
 
Upvote 0
The second match should be Table1[#Headers] rather than #All
 
Upvote 0
If you are getting 0s then it sounds as though it's finding both values. Try using the evaluate formula button on the formula tab, that way you can step through the calculation, which might show where it's going wrong.
 
Upvote 0
If you are getting 0s then it sounds as though it's finding both values. Try using the evaluate formula button on the formula tab, that way you can step through the calculation, which might show where it's going wrong.
That helped! I got it! Thank you SO MUCH for your time today. :biggrin:
 
Upvote 0
Glad it's sorted & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,065
Messages
6,122,945
Members
449,095
Latest member
nmaske

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