Quickest way to find the row with 2 values in different columns of M (i.e., lookup2(z1, z2, A, B) )
- March 18, 2023
- 1 reply
- 1533 views
I am looking for the most efficient/quickest way to find the row containing two values in different columns of M. The function I am envisioning would be an alteration of 'lookup': lookup2(z1, z2, A, B).
I have tried a few different solutions but was hoping for quicker performance. Using the masking method provided my
I also compared the time to run the built-in lookup function as a baseline which averaged ~0.15s @ N=10^5. I figure, looking up two values shouldn't be much more than one, max 2x 0.15 = 0.3s, but I am not able to achieve that.
MCP worksheet with parts of

MCP 8.0, Windows 10 Pro


