+ Reply to Thread
Results 1 to 3 of 3

Compare words in a certain column from another column and get percentage

  1. #1
    Registered User
    Join Date
    03-15-2021
    Location
    philippines
    MS-Off Ver
    ms 2017
    Posts
    2

    Post Compare words in a certain column from another column and get percentage

    Good Day!

    I am newbie here and would like to ask for your assistance in this issue.

    I have two columns with the following requirements:

    1. descriptions in Column A will be compared to all available data in Column B and should reflect the description (in column d) with closest match and with highest percentage (in column c)
    2. should not be case sensitive

    E.g

    column a__column b_column c_column d
    Dog 123____ abc ____ 50%____dog
    cat (abc)____dog___ 40%____ abc
    mouse____ xxx ____ 0%____ n/a


    as you noticed, for column a (A2) which is dog 123, it was matched with all the data in column B. C1 reflected 50% , the highest percentage match and also reflect in D1 the description of cell in column b with highest match(b3)

    Hope you can assist me.

    Thank you!
    Last edited by homer2211; 03-16-2021 at 02:03 AM.

  2. #2
    Registered User
    Join Date
    03-15-2021
    Location
    philippines
    MS-Off Ver
    ms 2017
    Posts
    2

    Re: Compare words in a certain column from another column and get percentage

    thank u so much!

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Compare words in a certain column from another column and get percentage

    Hello homer2211 and Welcome to Excel Forum.
    Assuming that columns A:B are manually input:
    Column C could be populated using: =IFERROR(LEN(INDEX(B$2:B$4,AGGREGATE(15,6,ROW(A$2:A$4)/(SEARCH(B2,A$2:A$4)>0),1)))/LEN(SUBSTITUTE(A2," ","")),0)
    Column D could be populated using: =IF(C2=0,"n/a",INDEX(B$1:B$3,AGGREGATE(15,6,ROW(A$2:A$4)/(SEARCH(B2,A$2:A$4)>0),1)))
    In the future please utilize the instructions in the banner at the top of the page to attach an .xlsx file rather than expecting us to copy/type data from a post into a spreadsheet.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Need UDF to get the percentage of words available from one column to another
    By RDA Di in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-13-2020, 11:53 AM
  2. Replies: 2
    Last Post: 01-21-2020, 07:44 AM
  3. Replies: 21
    Last Post: 10-10-2019, 03:12 AM
  4. [SOLVED] Compare 2 columns and display result in 3 column also with part words
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 04-30-2019, 12:47 AM
  5. [SOLVED] Compare words in 2 columns, formula for unique words in 3rd column
    By thecdnmole in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-08-2018, 01:58 PM
  6. Compare words in 2 columns, formula for unique words in 3rd column
    By thecdnmole in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2018, 06:26 PM
  7. percentage of words in a column
    By aneuryzma in forum Excel General
    Replies: 5
    Last Post: 08-23-2009, 09:10 AM

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