Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: compare data in two columns.

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    I'm sure it's easy but, I have two columns of data a1:a300 and b1:b300 and each contain part codes like 01ABC02.
    Some codes are repeated in each column and
    I want to find (and display the codes) the codes in column a that match the codes in column b. I've tried Or(Exact) but I think that only works with text only.

    Any help is much appreciated.

    Thanks

  2. #2
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    In C1 type the following:

    =COUNTIF($A$1:$A$300,B1)

    and copy down your list. Any non-zero results in column C indicate that there is a match of the cell in column B in column A.

    You can expand this to report the actual value, but you can easily AutoFilter the resulting list as well.

    HTH,
    Jay

  3. #3
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    man that was so simple, my brain just doesn't work at night.

    Thanks for the speedy reply.

    )

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •