+ Reply to Thread
Results 1 to 3 of 3

Reverse VLookup?

  1. #1
    Registered User
    Join Date
    01-23-2020
    Location
    PH
    MS-Off Ver
    2019
    Posts
    1

    Reverse VLookup?

    I create a SKU Generator using vlookup so when I put specific variables in table 1, it's going to pick up the codes for that variable in table 2. Since I have 7 variables, i concatenated the codes to form 1 single SKU code. I used the code below (let me know if there's an easier way of doing it). I wanted to check if it's possible to do a "reverse lookup" where when i enter a SKU in a cell, it's going to return a concatenated value of all variables?

    Screen Shot 2020-01-23 at 5.16.54 PM.png

    =CONCATENATE((VLOOKUP(A3,Codes!A3:B5,2,FALSE)),(VLOOKUP(B3,Codes!C3:D12,2,FALSE)),(VLOOKUP(C3,Codes!E3:F103,2,FALSE)),(VLOOKUP(D3,Codes!G3:H5,2,FALSE)),(VLOOKUP(E3,Codes!I3:J147,2,FALSE))," - ",(VLOOKUP(F3,Codes!L3:M8,2,FALSE)),(VLOOKUP('SKU Generator'!G3,Codes!N3:O11,2,FALSE)))
    Last edited by ketnkopfchen; 01-23-2020 at 07:23 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Reverse VLookup?

    you can't enter a value in a cell AND also have a formula in it. You can do a reverse lookup using index/match but that would require taking apart your vlookup and trying to work it backwards. A sample workbook would go a long way toward getting a working formula. Follow the instructions in the yellow banner at the top of the post to upload one, AND be sure to include some expected results.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Reverse VLookup?

    If you have TEXTJOIN, and if your SKUs are in column I, say in I2:I1000, then if you enter a SKU in cell X3, the various fields associated with that SKU would be given by

    =TEXTJOIN(",",0,INDEX($A$2:$G$1000,MATCH(X3,$I$2:$I$1000,0),0))

    As for your formula, it could be shorter, and I figure you want row-absolute references into the Codes worksheet.

    =VLOOKUP(A3,Codes!A$3:B$5,2,0)&VLOOKUP(B3,Codes!C$3:D$12,2,0)&VLOOKUP(C3,Codes!E$3:F$103,2,0)&VLOOKUP(D3,Codes!G$3:H$5,2,0)
    &VLOOKUP(E3,Codes!I$3:J$147,2,0)&" - "&VLOOKUP(F3,Codes!L$3:M$8,2,0)&VLOOKUP(G3,Codes!N$3:O$11,2,0)

+ 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?
    By artistapart in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-20-2013, 03:12 PM
  2. Reverse VLOOKUP
    By sinspawn56 in forum Excel General
    Replies: 10
    Last Post: 11-15-2012, 01:53 AM
  3. reverse vlookup?
    By tn80 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-17-2008, 11:08 PM
  4. Reverse Vlookup
    By teachMeExcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2008, 07:54 PM
  5. Reverse of VLookUp
    By Robin K. in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2006, 04:25 AM
  6. vlookup in reverse
    By Newbie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2006, 08:25 AM
  7. [SOLVED] reverse vlookup
    By John in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-04-2006, 05:15 PM
  8. [SOLVED] Reverse VLookup?
    By Tom Atkisson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2005, 06:06 AM

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