+ Reply to Thread
Results 1 to 8 of 8

Formula to find a match with different string lengths

  1. #1
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Formula to find a match with different string lengths

    I have Two columns of data where I am trying to make sure the numbers in both columns match.

    For example, line 2

    SearchTerm Customer material
    0034 05 10 0034 05 10 MFG OBSOLETE

    I just want to make sure that 0034 05 10 match in each column. The string length is not consistent.
    Attached Files Attached Files

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula to find a match with different string lengths

    Try this in C2 Drag/Fill Down, it will return FALSE if the don't match.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    [EDIT]
    You have other matches but not in the same row.
    Last edited by Marcol; 08-09-2013 at 02:17 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Formula to find a match with different string lengths

    Perfect. Thank you.

  4. #4
    Registered User
    Join Date
    08-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    16

    Thumbs up Re: Formula to find a match with different string lengths

    Thanks so much, got so much to learn...

  5. #5
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Formula to find a match with different string lengths

    I think there is an error in the formula because the below example returned true, however the string did not match. Only the first 4 numbers matched.


    SearchTerm Customer material
    5912 5912 28 59

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula to find a match with different string lengths

    Is that not what you asked for?
    "The string length is not consistent"

  7. #7
    Forum Contributor
    Join Date
    06-13-2012
    Location
    ND
    MS-Off Ver
    Excel 2010
    Posts
    152

    Re: Formula to find a match with different string lengths

    SearchTerm / Customer material
    5912 / 5912 28 59

    The string of number is 5912 28 59. I need the formula to include all numbers, no letters. I want to see where the SearchTerm and the Customer material match on all numbers. If one number is off it is not a match.

    The above example is not a match because the SearchTerm does not contain all the numbers in the Customer material.

    I probably used the term string incorrectly.

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula to find a match with different string lengths

    Okay that's an entirely different problem!

    Try this array formula confirm with Ctrl+Shift+Enter not just Enter, before dragging down.
    In B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Vlookup, Match (Search or Find) partial string within string in a Cell
    By dluhut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 12:40 PM
  2. Trim/parse from right within cell - string lengths different
    By oprpjm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 03:55 PM
  3. [SOLVED] Find Exact Match Text String Using Formula
    By sweetrevelation in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-12-2012, 10:53 AM
  4. Replies: 3
    Last Post: 05-09-2012, 11:36 AM
  5. CONCATENATE Spacing Issue Due to String Lengths
    By ffmariners in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2008, 02:32 PM

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