Xlookup 3 Way

DMfba

New Member
Joined
Mar 21, 2019
Messages
46
Office Version
  1. 365
Platform
  1. Windows
HI Everyone,

I am having some trouble doing a 3 way lookup using Xlook. I have two large tables of Product Inventor and Store sales. The goal is to bring in the sales information to the product inventory. The problem is each product can be ordered by multiple stores. To do this, I have to look up the each product, then the store , and find the sales info. Below is the xlookup formula that i am using and small shot of the the look up table. Currently, I am getting a error that say i am using the wrong value type. I am not exactly sure what part of the formula I have wrong or why. Any suggestions would be helpful.

XLOOKUP(A2,A2:A5,XLOOKUP(D1,$A$1:$E$1,XLOOKUP(B1,A1:E1,A2:E5,0,0),0))


Look up Table - Sales Info

1657065129317.png


Output that I am building

1657065403300.png
 
All this is good stuff, I should point out that XLOOKUP is defaulted to always find an exact match, unlike VLOOKUP.
XLOOKUP can look to the left something VLOOKUP cannot do.
You don't always need a helper cell, its just sometime easier to have it.
Good luck with your coding
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Thank you again for the additional formulas and pointing out things I overlooked.
You are very welcome. :)

XLOOKUP can look to the left something VLOOKUP cannot do.
I am definitely not recommending using it this way (much better to use XLOOKUP or INDEX/MATCH) but for the record, you can actually make VLOOKUP look left. Example

22 09 03.xlsm
ABCDE
1AmountNameNameAmount
25Name 1Name 34
36Name 2
44Name 3
52Name 4
Vlookup Left
Cell Formulas
RangeFormula
E2E2=VLOOKUP(D2,CHOOSE({1,2},B2:B5,A2:A5),2,0)
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,588
Members
449,174
Latest member
chandan4057

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