+ Reply to Thread
Results 1 to 7 of 7

Using Excel Functions, such as VLOOKUP to compare two columns of text for similarities

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    1

    Using Excel Functions, such as VLOOKUP to compare two columns of text for similarities

    My problem seems simple but I am struggling to figure it out. I have two columns of text. I am trying to see if the text in column B appears in column A. However, it is not always an exact match, and I basically want to check if column A contains the text that appears in column B. What is the best way to do this?

    Thank you! DiabetesMini.MDR US evk.xlsDiabetesMini.MDR US evk.xls

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Using Excel Functions, such as VLOOKUP to compare two columns of text for similarities

    I'm sure there are many ways but one method:
    =IF(COUNTIF(A:A,"=" & B1)=0,"Not Present","Present")

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 for Mac OSX & Windows
    Posts
    7,302

    Re: Using Excel Functions, such as VLOOKUP to compare two columns of text for similarities

    However, it is not always an exact match
    is the text an exact match within the text string you are searching for ?

    or are you trying to get a match on

    UNIV OF COLORADO
    and
    UNIVERSITY OF COLORADO DENVER
    Wayne

    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Using Excel Functions, such as VLOOKUP to compare two columns of text for similarities

    Sorry, missed the exact match bit. You could try including some wildcards which would give you if any of the cells in column A contain the text in column B:
    =IF(COUNTIF(A:A,"=*" & B1 & "*")=0,"Not Present","Present")

  5. #5
    Registered User
    Join Date
    08-05-2013
    Location
    Hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Using Excel Functions, such as VLOOKUP to compare two columns of text for similarities

    You can try this one.

    =IF(ISERROR(MATCH(A2,$B$2:$B$3,0)),"",A2)

    Please fill the array that you have under ($B$2:$B$3).

  6. #6
    Registered User
    Join Date
    10-07-2014
    Location
    Denver
    MS-Off Ver
    XP
    Posts
    7

    Re: Using Excel Functions, such as VLOOKUP to compare two columns of text for similarities

    How can I do this when the text data from both columns is not an exact match?

  7. #7
    Registered User
    Join Date
    02-03-2015
    Location
    NYC
    MS-Off Ver
    O365
    Posts
    2

    Re: Using Excel Functions, such as VLOOKUP to compare two columns of text for similarities

    You can try using the Microsoft Fuzzy Lookup Add-in. That's what it was designed for. There's tutorials and such on youtube.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel VBA - Compare Two worksheets and display the similarities in the 3rd sheet
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-24-2013, 09:53 AM
  2. Compare text in two different columns in Excel then print text
    By lllr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2010, 12:28 PM
  3. using vlookup in excel to compare columns
    By novice82 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-17-2009, 01:41 AM
  4. Compare and Display Similarities/Differences in two lists.
    By mrgillus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2009, 02:50 PM
  5. Similarities in 2 columns
    By auaeman in forum Excel General
    Replies: 3
    Last Post: 10-01-2008, 03:57 PM

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