+ Reply to Thread
Results 1 to 10 of 10

Reverse Partial Match VLookup

  1. #1
    Registered User
    Join Date
    07-15-2021
    Location
    Dallas
    MS-Off Ver
    365
    Posts
    6

    Reverse Partial Match VLookup

    I am using two sheets to match inventories.

    Sheet1 uses SKUs to search in Sheet2 to find the total stock quantity. It uses

    =iferror(VLOOKUP("*"&$A1561&"*",'Sheet2'!$A$2:$B$2367,2,FALSE), "NA")

    Everything works perfectly.

    I want to do the same, but reverse on Sheet2. This is to find what SKUs are on Sheet2, but not listed one Sheet1. The problem is that the SKUs in Sheet2 are in a text string and have no uniformity among the other.

    Sheet1
    Capture1231.JPG

    Sheet2
    Capture21312.JPG

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

    Re: Reverse Partial Match VLookup

    Welcome to the forum.

    There is no 2020 version of Excel - you probably have MS365, which is what needs to be in your profile, please. Thanks.

    See the first yellow banner at the top of the page telling you how to attach your sample workbook.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Reverse Partial Match VLookup

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    07-15-2021
    Location
    Dallas
    MS-Off Ver
    365
    Posts
    6

    Re: Reverse Partial Match VLookup

    Here is the workbook
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Reverse Partial Match VLookup

    The SKUs you want to look up have 7 number digits. Is that ALWAYS the case?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Reverse Partial Match VLookup

    Try this, in sheet2, e2, copied down:

    =IF(SUMPRODUCT(--(NOT(ISERR(SEARCH(Sheet1!$A$2:$A$7,A2)))))>0,"Yes","No")
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-15-2021
    Location
    Dallas
    MS-Off Ver
    365
    Posts
    6

    Re: Reverse Partial Match VLookup

    Quote Originally Posted by Glenn Kennedy View Post
    The SKUs you want to look up have 7 number digits. Is that ALWAYS the case?
    No they have quite a few different formats.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Reverse Partial Match VLookup

    No matter. See my proposed solution.

  9. #9
    Registered User
    Join Date
    07-15-2021
    Location
    Dallas
    MS-Off Ver
    365
    Posts
    6

    Re: Reverse Partial Match VLookup

    This worked!

    Thank you very much!

    Can you explain the "--" part of the formula?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Reverse Partial Match VLookup

    Yes. It turns a true false array into a 1 0 array which SUMPRODUCT adds up.

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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. REVERSE VLOOKUP or DYNAMIC INDEX MATCH
    By barrenaj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-16-2019, 02:05 PM
  2. [SOLVED] VLOOKUP Reverse Partial match question
    By blakeaces in forum Excel General
    Replies: 7
    Last Post: 10-04-2019, 12:47 PM
  3. Vlookup for partial match
    By scusack1 in forum Excel General
    Replies: 4
    Last Post: 07-26-2018, 01:34 PM
  4. Reverse Vlookup Partial String Match
    By Premmadaan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2018, 08:38 PM
  5. reverse vlookup and match formula
    By sp1974 in forum Excel General
    Replies: 8
    Last Post: 07-24-2014, 03:13 PM
  6. Reverse Partial match lookup
    By Stueymac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2013, 05:12 AM
  7. [SOLVED] VLOOKUP with partial match
    By Nekk in forum Excel General
    Replies: 7
    Last Post: 06-28-2012, 11:46 AM

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