+ Reply to Thread
Results 1 to 10 of 10

Get best match for a description where is doesn't exactly match

  1. #1
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    78

    Unhappy Get best match for a description where is doesn't exactly match

    Hi Community,

    I'm really struggling to figure out how to do this, even if it is at all possible...

    I have two lists of items, list A has part codes and descriptions (25,000 lines), List B is just manually written descriptions (2,000 lines).
    I need to add the corresponding part codes from List A to the list B where the descriptions are best matched.

    The problem is, the descriptions aren't exact, the order of the defining features aren't in the same position or there simply isn't a part for that description.

    An extreme example of this;

    Description on List B;
    15 meters of blue cable with four cores on a drum
    Should suggest a match in List A to;
    4 core blue 15m

    Is excel able to recognise that or is this to be a massive manual boring effort?

    I did split each word in the description into individual cells on both lists, then had the idea to try an match the cells individually. The problem I faced with that is;
    a) I don't know how to do it
    b) I think it would need to match each cell against each cell on both lists then get the most matches on each line to give the best potential suggestion. That's a lot of compares. Some descriptions are 20+ words long.

    Can someone either give me hope, or tell me to stop trying and manually get matching.
    Either way, thanks.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: Get best match for a description where is doesn't exactly match

    I doubt if Excel could do any significant matching, based on the example you gave.

    Post a sample file so a better assessment can be made: see yellow banner at top of page on how to attach a workbook

  3. #3
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    78

    Re: Get best match for a description where is doesn't exactly match

    That example is an extreme, so a bit silly of me to lead with that.

    See the attached, I have a sample of both lists and highlighted matches, these are fairly straight forward with slight differences in how they are described.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: Get best match for a description where is doesn't exactly match

    See attached as a possible aide

    in C3

    =TRIM("CT" &MID($B3,FIND("mm",$B3,1)-2,2)&MID($B3,FIND("M",$B3,1),3))

    Derive LIST B code from LIST A description

    in D3

    =IFERROR(IF(MATCH(C3&"*",$E$3:$E$16,0),TRUE,""),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    78

    Re: Get best match for a description where is doesn't exactly match

    That works well for this example.
    I'll go through what else I have and apply the same principles to other groups of descriptions.
    Always a school day! Thanks.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: Get best match for a description where is doesn't exactly match

    If you post your full file, I am willing to take a look to see what can be done.

  7. #7
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    78

    Re: Get best match for a description where is doesn't exactly match

    Really! That would be great.
    I'll simplify it as much as possible, as it is a bunch of mumble and does require some sort of prior knowledge.
    I'll DM you.

  8. #8
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    78

    Re: Get best match for a description where is doesn't exactly match

    Attached is the full file.
    I'll explain as much as I can in the DM.
    Thanks
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-01-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    78

    Re: Get best match for a description where is doesn't exactly match

    I'm not sure if the DM has sent, I tried it twice, pressed send, page refreshed and there is no message in my sent folder...

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,192

    Re: Get best match for a description where is doesn't exactly match

    I received your message(s)!

+ 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. INDEX MATCH MATCH doesn't work well in a Filtered List?
    By exceln3wb in forum Excel General
    Replies: 1
    Last Post: 10-05-2017, 06:57 AM
  2. function INDEX MATCH MATCH doesn´t work
    By leonelcd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2015, 11:36 AM
  3. [SOLVED] Add row for item that doesn't match to the list and add value if match
    By dondonordas in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 02-17-2014, 08:37 PM
  4. Index Match Match Formula DOESN'T WORK WITH TABLES/TABLE NAMES ??
    By Underling in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2014, 09:01 PM
  5. Match Client ID, Then Match Description, Return YES
    By hunt0035 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2012, 03:35 PM
  6. [SOLVED] VBA worksheetfunction.match doesn't match DATE. Userform
    By stevnb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-05-2012, 09:08 AM
  7. [SOLVED] IF the name does not match the description - FLAG
    By rwab in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2008, 04:38 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