Excel - Looping through data till it finds the right one

Posted by DanoK on Stack Overflow See other posts from Stack Overflow or by DanoK
Published on 2009-07-09T13:58:29Z Indexed on 2010/05/26 0:21 UTC
Read the original article Hit count: 568

Filed under:
|
|

I'm pulling data from one Excel table into another using an IF statement. I want it to check two fields and if it is a match I want it to print something and if it doesn't then I want it to continue searching. If there is no absolute match then leave the field blank.

I believe I'm running into an syntax issue but after numerous iterations I can't get it to pull everything over. Here is my current syntax.

=IF(BM5<>"External","",IF(AND(S5=VLOOKUP(A5,ExternalOnly,5,FALSE),A5=VLOOKUP(A5,ExternalOnly,1,FALSE)),S5,"")

© Stack Overflow or respective owner

Related posts about excel

Related posts about lookup