+ Reply to Thread
Results 1 to 5 of 5

Comparing three columns

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    Paris
    MS-Off Ver
    Excel 2007
    Posts
    2

    Comparing three columns

    Hello,

    I need some help! I have a spreadsheet and columns A , E and I contain phrases ( up to 5 words) . I want to compare the three columns to find exact matches that appear in all three. Is there a formula I could use. I can compare two columns but I don't know what to do to compare the three.


    Thanks!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Comparing three columns

    hi there, welcome to the forum. are you comparing it row by row or altogether? for row by row,
    =AND(A1=E1,E1=I1)

    to compare altogether:
    =SUMPRODUCT(--(A1:A10&E1:E10=E1:E10&I1:I10))=ROWS(A1:A10)

    or to get number of matches:
    =SUMPRODUCT(--(A1:A10&E1:E10=E1:E10&I1:I10))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    09-11-2012
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Comparing three columns

    Hi

    You could use
    Please Login or Register  to view this content.
    in the cell you want to store your result in. This example will compare A1 to E1 and I1, if both are equal then it writes 'True', otherwise 'False'. Just copy this formula down through all the cells you require.

    Hope it helps.

    Regards
    Stephen.

  4. #4
    Registered User
    Join Date
    06-13-2013
    Location
    Paris
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Comparing three columns

    Hey Guys,

    Thanks for your help.

    benishiryo, I changed your formula a bit to match the number of rows containing words and it no longer works. I get an error. I am comparing all together.

    =SUMPRODUCT(--(A2:A1001&E2:E501=E2:E501&I2:I328))=ROWS(A2:A1001)

    I would ideally like the phrase to be copied to the formula cell if there is a match.

    Thanks again,

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,601

    Re: Comparing three columns

    Try this ARRAY formula. (Drag down)

    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 06-13-2013 at 06:49 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1