I wrote this formula in Excel, and it works.
I tried several methods to write this into VBA, where all hard references are variables—ranges and search items. I also needed my search items to be de-formatted, so that even if I had them formatted as numbers or text, it would match. No matter what I did, I got error code 13. I finally gave up, and cheated by creating an extra column that concatenated the two items I wanted to search for independently, and did a XLookup off of that. But I feel dirty doing it. I know there's a better way using Index and Match.
=INDEX(L:L,MATCH(U2&V2,I:I&D:D,0))
I tried several methods to write this into VBA, where all hard references are variables—ranges and search items. I also needed my search items to be de-formatted, so that even if I had them formatted as numbers or text, it would match. No matter what I did, I got error code 13. I finally gave up, and cheated by creating an extra column that concatenated the two items I wanted to search for independently, and did a XLookup off of that. But I feel dirty doing it. I know there's a better way using Index and Match.