Forum Discussion

Pharmalisk's avatar
Pharmalisk
Copper Contributor
Dec 05, 2024
Solved

Xlookup using multiple criteria and itself

Hello, I am trying to automate a process of looking up values from two other sheets and I can't seem to get the last part down.   I have the working sheet and I am looking to match the Line It...
  • HansVogelaar's avatar
    Dec 05, 2024

    In B2 on Working Sheet:

    =LET(filterA, FILTER('Sheet A'!$A$2:$A$100, 'Sheet A'!$B$2:$B$100=A2, ""),
         filterB, FILTER('Sheet B'!$A$2:$A$100, 'Sheet B'!$B$2:$B$100=A2, ""),
         combined, FILTER(filterA, ISNUMBER(XMATCH(filterA, filterB)), ""),
         INDEX(combined, 1))

     

Resources