+ Reply to Thread
Results 1 to 5 of 5

Vlookup Formula to find partially matched number

Hybrid View

  1. #1
    Registered User
    Join Date
    09-21-2012
    Location
    Lansing, MI
    MS-Off Ver
    Excel 2010
    Posts
    2

    Vlookup Formula to find partially matched number

    Good evening, I have a quick question (hopefully)... I am trying to look up data from one column to another but it is only a partial number and want it to bring back the full number, can you tell me how to do that? For instance, In cell A1 I have a number 67512 and want to look for that number in another column (C) and if any number has 67512 in it, I'd like it to bring it back.. so the final number might be 6751234. I am thinking that this can be done through a vlookup formula, however, I am not sure. The problem is that the data I am receiving does not match up as it is truncated in many instances. Any help would be greatly appreciated and save me much needed time for other tasks. Thank you in advance!
    Last edited by lglThird; 09-21-2012 at 06:43 PM.

  2. #2
    Forum Contributor
    Join Date
    04-07-2009
    Location
    Rowley
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Vlookup Formula to find partially matched number

    Try this:

    With your query number in A1 and your target list is in column Q1:Q14

    =SUMPRODUCT(--(ISNUMBER(SEARCH("*"&A1&"*",Q1:Q14))),(Q1:Q14))

    Caveat: If there is more than one instance of your query number, then the two get added together.

  3. #3
    Registered User
    Join Date
    09-21-2012
    Location
    Lansing, MI
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Vlookup Formula to find partially matched number

    thank you xenixman, worked perfectly. I like the caveat as I will be reviewing the ones that are added together so it appears that it is an additional check for me at this point... saved me a ton of time!

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vlookup Formula to find partially matched number

    @ lglThird

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Forum Contributor
    Join Date
    05-16-2010
    Location
    UK
    MS-Off Ver
    2003 and 2007
    Posts
    252

    Re: Vlookup Formula to find partially matched number

    The attached example uses Microsoft query, given you could have multiple partial matches and avoids using VBA, array formulae etc.
    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)

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