+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP partial match not playing the game

  1. #1
    Registered User
    Join Date
    11-21-2015
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 2013
    Posts
    52

    VLOOKUP partial match not playing the game

    Hi All

    I'm trying to get VLOOKUP to work using a partial match on a cell that contains two values seperated by a / eg. 12345/54321 but the results are not correct. The VLOOKUP function works if I enter a value from a cell that has just a single number but not from cell that has the two numbers.

    Attached spreadsheet shows the issue

    In the example on Sheet Test Data I need to be able to get VLOOKUP to work on Row 18

    Any help appreciated thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: VLOOKUP partial match not playing the game

    You are not likely to be able to get this to work simply with VLOOKUP: your formula needs the entire contents of the lookup cell to match the lookup value.

    An approximate match (TRUE) is not really appropriate either, since your codes are surely unique values?
    Last edited by AliGW; 07-13-2016 at 06:42 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-21-2015
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 2013
    Posts
    52

    Re: VLOOKUP partial match not playing the game

    You are not likely to be able to get this to work simply with VLOOKUP: your formula needs the entire contents of the lookup cell to match the lookup value
    I need to be able to extrapolate values using just one of the two numbers e.g. 12345 or 54321 not 12345/54321. In my real data 12345 is a unique Work Order Number and so is 54321. They are combined in the cell for another reason. Is there another formula that I can use?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: VLOOKUP partial match not playing the game

    It's not going to be easy unless you separate out these numbers. Why do they have to be together?

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: VLOOKUP partial match not playing the game

    You could try it this way in C2:

    =IF(COUNTIF(SalesOrders!$B:$B,$B2),VLOOKUP($B2,SalesOrders!$B:$G,2,0),VLOOKUP("*"&$B2&"*",SalesOrders!$B:$G,2,0))

    then copy across and down (making appropriate changes to the 2 in red for the other columns).

    Hope this helps.

    Pete

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: VLOOKUP partial match not playing the game

    Another way:
    In C2:

    Please Login or Register  to view this content.
    Copy to D2:E2

    In E2, change E$2:E$19 to G$2:G$19
    Quang PT

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: VLOOKUP partial match not playing the game

    ARRAY formula In Row 2, then drag down.
    Please Login or Register  to view this content.
    Pl see file.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-21-2015
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 2013
    Posts
    52

    Re: VLOOKUP partial match not playing the game

    Thank you everybody. All three examples work. Although I must say they look a bit daunting

+ 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. excel vlookup partial match for URLs
    By tonyuk001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-08-2014, 12:58 PM
  2. Vlookup with only partial text match
    By betsy2128 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-18-2013, 08:03 AM
  3. [SOLVED] modified vlookup for partial match
    By jlax34 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-15-2012, 02:07 PM
  4. [SOLVED] VLOOKUP with partial match
    By Nekk in forum Excel General
    Replies: 7
    Last Post: 06-28-2012, 11:46 AM
  5. Partial Vlookup Match
    By OptionTrader in forum Excel General
    Replies: 12
    Last Post: 11-15-2009, 08:28 AM
  6. Vlookup - Partial Match
    By VegasL in forum Excel General
    Replies: 8
    Last Post: 06-08-2008, 03:25 AM
  7. Partial String Match Using VLOOKUP
    By cdhmotes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-26-2005, 06:30 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