+ Reply to Thread
Results 1 to 8 of 8

Reverse Table Lookup using a partial string

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Mac Excel 2008
    Posts
    18

    Reverse Table Lookup using a partial string

    Okay what I am basically trying to do is to match a string of text with a full string of text and then take the law id to the right of it. I already have the formula to match, but i cannot find the right formula to find the position of that cell.
    The formula I am using to match it is----

    =if(sumproduct(--(isnumber(search(a1,D1:D3))),"match","false")

    I just need to know how to find the position of the cell or how to obtain the law id to the right of it, if that is possible.
    Thanks. Pat
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reverse Table Lookup using a partial string

    Hi,

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    obviously change the ranges accordingly.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Mac Excel 2008
    Posts
    18

    Re: Reverse Table Lookup using a partial string

    Thanks Richard! I was very close with the index function, I was just using the sumproduct function instead of the match function.

  4. #4
    Registered User
    Join Date
    06-20-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Mac Excel 2008
    Posts
    18

    Re: Reverse Table Lookup using a partial string

    Quick question. What does the star asterisk signify?

  5. #5
    Registered User
    Join Date
    06-20-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Mac Excel 2008
    Posts
    18

    Re: Reverse Table Lookup using a partial string

    Okay, it hit a snag. The formula will work perfectly when the input is in the front, such as matching "william" to "William and Mary", but when I move "william" to the back of the string like "and mary law school william", it does not match. Any possible solutions?

    Here is the updated worksheet.
    Attached Files Attached Files
    Last edited by pat3white; 06-27-2013 at 12:49 PM.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reverse Table Lookup using a partial string

    Hi,

    Yes, just add an extra star!

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The * is a wild card character which means in this case 'match any number of characters followed by the A1 value followed by the rest of the characters.

  7. #7
    Registered User
    Join Date
    06-20-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Mac Excel 2008
    Posts
    18

    Re: Reverse Table Lookup using a partial string

    Thanks a lot! I can't believe I have been using multiple and and or statements with the sumproduct(--(isnumber(search))) function and you just used the "*" and it worked the same. You have shorted my functions by a considerable amount. Have a great

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Reverse Table Lookup using a partial string

    Glad to have helped and thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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