Help on Xlookup

Gcsingh90

New Member
Joined
Dec 6, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Data is as follows
Person 1Person 2Person 3Person 4Person 5Person 6Person 7Person 8
1​
2​
3​
4​
5​
6​
7​
8​
9​
Jan-23​
2​
2​
3​
5​
6​
6​
2​
2​
Feb-23​
3​
7​
2​
4​
7​
3​
3​
3​
Mar-23​
3​
3​
3​
4​
2​
7​
6​
3​
Total
8​
12​
8​
13​
15​
16​
11​
8​
Apr-23​
2​
2​
5​
2​
6​
4​
5​
7​
May-23​
1​
2​
7​
6​
2​
5​
4​
7​
Jun-23​
6​
5​
2​
6​
7​
7​
1​
6​

Required Output

Person 5Person 6Person 7Person 8Person 2Person 1
Jan-23662222
Feb-23733373
Mar-23
Apr-23
May-23
Jun-23

Basically Output required is searching the Month and Person name and fetches the data from main data. I tried Xlookup and willing to understand different ways to acheive this. But Xlookup is primarly trying to understand. I tried using the formula below which gives error.

=XLOOKUP(D12,D1:L5,XLOOKUP(E11,E1:L1,E2:L5))

Please guide. Thanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
In the output table person's name can shuffle so how can a formula search the person in main data and return the value corresponding to Jan or any month? xlookup within xlookup?
 
Upvote 0
try with index match

Excel Formula:
=INDEX($B$3:$I$9,MATCH($A14,$A$3:$A$9,0),MATCH(B$13,$B$1:$I$1,0))

1708078232516.png
 
Upvote 0
willing to understand different ways to acheive this.

24 02 16.xlsm
DEFGHIJKL
1Person 1Person 2Person 3Person 4Person 5Person 6Person 7Person 8
2123456789
3Jan-2322356622
4Feb-2337247333
5Mar-2333342763
6Total8128131516118
7Apr-2322526457
8May-2312762547
9Jun-2365267716
10
11Person 5Person 6Person 7Person 8Person 2Person 1
12Jan-23662222
13Feb-23733373
14Mar-23276333
15Apr-23645722
16May-23254721
17Jun-23771656
Lookup
Cell Formulas
RangeFormula
E12:J17E12=LET(f,FILTER($E$3:$L$9,$D$3:$D$9=$D12),FILTER(f,$E$1:$L$1=E$11))
 
Upvote 0
Most of the above will work for you but it sounds like you are specifically trying to understand why your XLookup doesn't work.
If that is the case see if this helps.
(Formula in E12)
The inner XLookup selects the column to return. (which column out of E to L)
The outer XLookup selects the row to return (which row out of 2 to 9)

1708083463784.png
 
Upvote 0

Forum statistics

Threads
1,215,078
Messages
6,122,997
Members
449,093
Latest member
masterms

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