+ Reply to Thread
Results 1 to 8 of 8

How to match "close" values between two data sources?

  1. #1
    Registered User
    Join Date
    09-30-2006
    Posts
    16

    How to match "close" values between two data sources?

    Hello all - I have a document with a lot of items to match up - assuming they are matchable - and little time in which to do it.

    is there a formula / function to identify and match those part numbers provided by data source #1 that are close to those provided by data source #2? Example of close = all characters are the same except one has dashes & one does not, one has spaces & the other has dashes, or another type of "difference" like that.

    I have attached a document that shows the data with which I am working. I would appreciate any help that could be offered, the quicker, the better!! Thanks in advance.

    I use Excel 2007 and my OS is WIndows XP. I know, I know...

    Thanks, JBG
    Attached Files Attached Files
    Last edited by JBG2007; 10-20-2011 at 02:09 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: HELP! Need formula to identify "close" values ASAP

    Your post does not comply with Rule 5 of our Forum RULES. We have Seven question forums: Miscellaneous, General, Programming, Worksheet Functions, Charting, Excel 2007 Help and New Users. Please choose the appropriate forum, and post your question in ONLY one forum.

    Your thread has been moved to the "General" forum.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: HELP! Need formula to identify "close" values ASAP

    One way, with two Helper columns

    1. D6: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B6,".",""),"-","")," ",""),"(",""),")","")

    2. E6: =COUNTIF($D$6:$D$1182,$D6)


    Copy both formulae down and filter on column E


    HTML Code: 


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: How to match "close" values between two data sources?

    @ConnexionLost: working on solution while you were moderating ;-) Apologies

  5. #5
    Registered User
    Join Date
    09-30-2006
    Posts
    16

    Re: HELP! Need formula to identify "close" values ASAP

    That is awesome! Thank you! Can I also add another "substitute" between "S" and "5", and is there any way to match where one value has a leading zero and the other does not? That would solve all of my problems.

    I've never even heard of this formula before and am so excited to learn a new one!! Thanks so much!!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: How to match "close" values between two data sources?

    Yes, you can add another SUBSTITUTE if you wish.

    You'd probably need another function to remove the leading zero, assuming there is only one.

    =IF(LEFT(B6,1)=0,RIGHT(B6,LEN(B6)-1),B6) rather than just B6 in the original formula.

    Regards

  7. #7
    Registered User
    Join Date
    09-30-2006
    Posts
    16

    Re: How to match "close" values between two data sources?

    Awesome! I really appreciate your help.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: How to match "close" values between two data sources?

    You're welcome. Glad I could help.

+ 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