Forum Discussion

HannahKing's avatar
HannahKing
Copper Contributor
Mar 07, 2024
Solved

If formulas

Hi,

 

Any ideas for a formula that will identify if values in one column are present in another? E.g, if values in column a are also in column b then return a yes.

 

Thanks,

Hannah

  • HannahKing 

    The formula tells you whether a value in the first range also occurs in the second range.

    So the formula only makes sense in the rows of the first range, below that it will always return FALSE.

3 Replies

  • HannahKing 

    For example:

    In C1, enter the formula =ISNUMBER(MATCH(A2, B:B, 0))

    This will return TRUE if the value of A1 occurs in column B, FALSE if not.

    Fill down from C1.

    • HannahKing's avatar
      HannahKing
      Copper Contributor

      HansVogelaar 

       

      Thanks for your response. Do you think this has worked? One column has more values than the other, and as soon as column a ends, it changes to false.

       

       

      • HansVogelaar's avatar
        HansVogelaar
        MVP

        HannahKing 

        The formula tells you whether a value in the first range also occurs in the second range.

        So the formula only makes sense in the rows of the first range, below that it will always return FALSE.

Resources