If two cells match, return value from third

后端 未结 3 1453
走了就别回头了
走了就别回头了 2020-11-29 03:43

Here\'s a simple explanation of what I\'m having trouble with.

Column A: List of 2300 order numbers
Column B: Email Address associated with an order number
C

相关标签:
3条回答
  • 2020-11-29 04:03

    All you have to do is write an IF condition in the column d like this:

    =IF(A1=C1;B1;" ")
    

    After that just apply this formula to all rows above that one.

    0 讨论(0)
  • 2020-11-29 04:09

    I think what you want is something like:

    =INDEX(B:B,MATCH(C2,A:A,0))  
    

    I should mention that MATCH checks the position at which the value can be found within A:A (given the 0, or FALSE, parameter, it looks only for an exact match and given its nature, only the first instance found) then INDEX returns the value at that position within B:B.

    0 讨论(0)
  • 2020-11-29 04:10
    =IF(ISNA(INDEX(B:B,MATCH(C2,A:A,0))),"",INDEX(B:B,MATCH(C2,A:A,0)))
    

    Will return the answer you want and also remove the #N/A result that would appear if you couldn't find a result due to it not appearing in your lookup list.

    Ross

    0 讨论(0)
提交回复
热议问题