+ Reply to Thread
Results 1 to 3 of 3

Compare two columns problem

  1. #1
    Registered User
    Join Date
    09-11-2011
    Location
    Svrljig,Serbia
    MS-Off Ver
    Excel 2003
    Posts
    12

    Compare two columns problem

    Hi,

    I have one sheet with two columns :

    Column A - 400 text values
    Column B - 100 text values

    I want values from Column A that are in Column B, other are irrelevant
    I tried comparing with VLOOKUP, IFSERR functions, but didnt succeed

    Thanks in advance

  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: Compare two columns problem

    Name your list as List1 & liST2. tHEN USE THIS aRRAY FORMULA.

    iF YOU NEED CHANGE THE SEMI COLONS IN MY FORMULA TO COMMA.

    =IFERROR(IFERROR(INDEX(List1;MATCH(0;COUNTIF(D$1:$D2;List1)+IF(COUNTIF(List1;List1)>1;0;1);0));INDEX(List2;MATCH(0;COUNTIF(D$1:$D2;List2)+IF((COUNTIF(List2;List2)+COUNTIF(List1;List2))>1;0;1);0)));"")
    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 Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Compare two columns problem

    hi ciki022, welcome to the forum. or if you are using Excel 2003, try:
    Please Login or Register  to view this content.
    same thing. CTRL + SHIFT + ENTER to confirm

    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

+ 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