+ Reply to Thread
Results 1 to 3 of 3

Match different long strings with an array of short, summarizing strings

  1. #1
    Registered User
    Join Date
    09-22-2015
    Location
    Amsterdam
    MS-Off Ver
    2013
    Posts
    2

    Match different long strings with an array of short, summarizing strings

    Is it possible to turn the lookup_value and lookup_array around in =MATCH(lookup_value, lookup_array, [match_type]) from =MATCH("*"&lookup_value&"*", lookup_array, [match_type]) - seen more often - to something that would work like =MATCH(lookup_value, "*"&lookup_array&"*", [match_type]) or =MATCH(MID(lookup_value,*,*), lookup_array, [match_type]) (double asterix since I don't know where the matching word(s) start and end)?

    Based on the functional description of thousands of pieces of equipment I'm registering I would like to add one of the approx. 330 types they could be divided into; typicals.
    Since the descriptions can slightly vary I try to match the long descriptions to the summaries of these descriptions. These descriptions subsequently equal the typicals: type abbreviation I need to provide each equipment with.

    Example:
    Equipment description (table 1)
    hand operated valve to protect vacuum pumps
    hand operated vent valve
    hand operated valve to TRV
    hand operated drain valve

    Partial description (summary; table 2)
    drain
    vent
    hand operated valve

    With next to it (in table 2) the three corresponding type abbreviations (typicals)
    DRN
    VNT
    HOV

    In the end I would like to have a formula that would match the three characteristics and would result in:
    hand operated valve to protect vacuum pumps | HOV
    hand operated vent valve | VNT
    hand operated valve to TRV | HOV
    hand operated drain valve | DRN

    Combining INDEX and MATCH would enable me to get the third string value returned from the adjacent column after a match between two identical strings has been made. However the fact that my lookup value is longer than the matching value prevents me from nailing it.
    Using VLOOKUP sounded promising as well, but I can't combine two arrays that should mutually match.

    How can I get this solved?

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Match different long strings with an array of short, summarizing strings

    Can you upload a small sample file showing same examples of your desired outcomes and how those results were determined?

  3. #3
    Registered User
    Join Date
    09-22-2015
    Location
    Amsterdam
    MS-Off Ver
    2013
    Posts
    2

    Re: Match different long strings with an array of short, summarizing strings

    I apologize for my late reply, but apparently the fire wall at work prohibits me from uploading a file...

    I hope this explains!
    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. Help searching an array of text strings for common strings
    By ABComp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-23-2012, 11:19 PM
  2. Replies: 9
    Last Post: 12-21-2012, 04:18 AM
  3. [SOLVED] loop to match if shorter strings appears in longer strings
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2012, 08:07 PM
  4. Adding array of strings to another array of strings
    By Sccye in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2012, 08:25 AM
  5. Compression technique for short number strings!
    By stewart08 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 01-31-2010, 04:51 PM
  6. Replacing short strings
    By jamieb in forum Excel General
    Replies: 4
    Last Post: 07-28-2008, 09:29 AM
  7. Long Strings
    By Guitar Billy in forum Excel General
    Replies: 1
    Last Post: 11-20-2006, 10:03 AM
  8. [SOLVED] Wildcard MATCH() breaks on long (?) strings
    By [email protected] in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-05-2005, 10:06 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