Forum

Notifications
Clear all

Can XLOOKUP solve my multi level search to obtain value?

4 Posts
2 Users
0 Reactions
82 Views
(@gerry76)
Posts: 2
New Member
Topic starter
 

1 Header Row with 14 Columns

Column 1 is [places] with repeated data in rows
Column 2 is [Grade] with repeated data in rows
Column 3 to 14 are months from [Jan] to [Dec]

Serial numbers from [C2] to [N5] are unique
Serial numbers are repeated for each [places]

Condition 1 = limit search rows to only Japan in [places]
Condition 2 = search for range [C6] to [N9] containing 60031

Obtain value [Grade 3] with fixed B column [Grade] and row number of 60031

Hope some professional can help. I've tried using nested ifs, vlookup, hlookup, xlookup, and many many formulas... 

The challenge is not to use any vba but just excel formulas.

headache.png

 
Posted : 09/05/2021 4:01 pm
(@fluff)
Posts: 36
Eminent Member
 

How about

=INDEX(B2:B15,AGGREGATE(15,6,(ROW(B2:B15)-ROW(B2)+1)/(A2:A15=Q2)/(C2:N15=Q3),1))

 
Posted : 10/05/2021 8:29 am
(@gerry76)
Posts: 2
New Member
Topic starter
 

@Fluff

Thank you for the answer. It works. I've yet to fully understand how aggregate work but your sample has lead me the way. 

 
Posted : 11/05/2021 12:25 am
(@fluff)
Posts: 36
Eminent Member
 

You're welcome & thanks for the feedback.

 
Posted : 11/05/2021 8:00 am
Share: