Forum Discussion

Jpalaci1's avatar
Jpalaci1
Brass Contributor
Jul 16, 2021
Solved

How to do INDEX(MATCH() or XLOOKUP() with nested OR()?

  I have two tables and need assistance with one main issue but I think I may have discovered a second I couldn't solve.    Main Issue: I look at the table on the left (A:F) in column C and ...
  • mtarler's avatar
    mtarler
    Jul 16, 2021

    Jpalaci1 i'm sorry but maybe I'm still not following. Why not just use the "linking Account" in the XLOOKUP instead of the created Key?

    =XLOOKUP([@[Linking Account]],Table2[Linking Account],Table2[Linking Account Name])

    or if you only want to 'fall back' to that less specific match condition then add a second xlookup in that if_not_found criteria like this:

    =XLOOKUP([@[Created Key]],Table2[Created Key],Table2[Linking Account Name],XLOOKUP([@[Linking Account]],Table2[Linking Account],Table2[Linking Account Name]))

    the problem is that in your simple example both give the same results (the first I put in col E and the latter I put in col F)

Resources