I’ve been trying to do the following:
Sheet1, lookup valueA3inDataData, check whether the found value has a1in columnM- Yes: Paste the value of column
KfromDatain columnB3inSheet1 - No: Carry on searching through the sheet and display
0if nothing is found
- Yes: Paste the value of column
This is what I have so far, it finds the correct K value, but I need to enter shift+ctrl+enter to get the value …
=INDEX('TLN Data'!$B$1:$Z$15000; MATCH(1;(A3='TLN Data'!$B$1:$B$15000)*(1='TLN Data'!$M$1:$M$15000);0); 10)
All help is much appreciated!
—
Sheet1

TLN Data

You can add an INDEX function to get a version that doesn’t need CSE, i.e.
=INDEX('TLN Data'!$B$1:$Z$15000; MATCH(1;INDEX((A3='TLN Data'!$B$1:$B$15000)*(1='TLN Data'!$M$1:$M$15000);0);0);10)That would be preferable to SUMPRODUCT in some cases, e.g. where the return value is text, or if you have multiple matches and you only want the first.
You can also use LOOKUP like this:
=LOOKUP(2;1/(A3='TLN Data'!$B$1:$B$15000)/(1='TLN Data'!$M$1:$M$15000);'TLN Data'!$K$1:$K$15000)With that version if there are multiple matches that returns the last