Data is as follows
Required Output
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
Person 1 | Person 2 | Person 3 | Person 4 | Person 5 | Person 6 | Person 7 | Person 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 5 | Person 6 | Person 7 | Person 8 | Person 2 | Person 1 | |
Jan-23 | 6 | 6 | 2 | 2 | 2 | 2 |
Feb-23 | 7 | 3 | 3 | 3 | 7 | 3 |
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