+ Reply to Thread
Results 1 to 6 of 6

How to Match two Columns of Data in excel with different column lengths

  1. #1
    Registered User
    Join Date
    07-13-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2003
    Posts
    13

    How to Match two Columns of Data in excel with different column lengths

    Excel Gurus!
    This should be an easy one for you to tackle but its giving me some problems. In the attached document, I am trying to match column G with column E. All the data in column "E" Should be somewhere in column "G" I tried using IFNA with a match but it didn't work. If column "G" contains a supplier from column "E", I would like "F" to show it is a match.

    let me know if this is clear,
    and thank you very much.

    -B
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to Match two Columns of Data in excel with different column lengths

    hI

    In H2 and copy down, try this.

    =IF(COUNTIF($E$3:$E$173,G3)>1,"MATCH","")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to Match two Columns of Data in excel with different column lengths

    try..

    =IF(ISNA(VLOOKUP(G3,$E$3:$E$173,1,FALSE)),"","MATCH")

    I am afraid, Fotis's formula will return "MATCH" only in in case the name exists 2 or more times
    =IF(COUNTIF($E$3:$E$173,G3)>1,"MATCH","")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to Match two Columns of Data in excel with different column lengths

    Quote Originally Posted by Ace_XL View Post
    try..


    I am afraid, Fotis's formula will return "MATCH" only in in case the name exists 2 or more times
    I am afraid too! As i said in another post, it's not a good day for me! Thnks for mention this.

    I forgot an "=" in my formula.

    =IF(COUNTIF($E$3:$E$173,G3)>=1,"MATCH","")

  5. #5
    Registered User
    Join Date
    07-13-2012
    Location
    Columbus
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: How to Match two Columns of Data in excel with different column lengths

    Gentlemen, dont know how you do it but thanks!

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: How to Match two Columns of Data in excel with different column lengths

    @ neuman43

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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