• Compare to Columns of Text Data (2000)

    Author
    Topic
    #408506

    Hi, I want to compare two columns of last names, looking for equality. For example, if there is a Jones in A1 does it match the Jones in G11. One list is longer than the other so, it is not possible to sort then use =a1=g1. I have tried the formula =a1=$g$1:$g$50 and it only works on the first cell.

    Any ideas?

    Thanks.

    Viewing 3 reply threads
    Author
    Replies
    • #863013

      Try this:

      =COUNTIF($G$1:$G$50,A1)>0

      and fill down as far as needed. The COUNTIF function counts the number of matches for the value of A1 in the range G1:G50; if this count is greater then 0, there is a match.

    • #863014

      Try this:

      =COUNTIF($G$1:$G$50,A1)>0

      and fill down as far as needed. The COUNTIF function counts the number of matches for the value of A1 in the range G1:G50; if this count is greater then 0, there is a match.

    • #863389

      Hans, worked perfect.

      Thanks.

    • #863390

      Hans, worked perfect.

      Thanks.

    Viewing 3 reply threads
    Reply To: Compare to Columns of Text Data (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: