+ Reply to Thread
Results 1 to 2 of 2

dynamic vlookup

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    41

    dynamic vlookup

    Hi Guys,

    Need your help with a dynamic vlookup between two tables/sheet.

    Table ABC

    Type Select Value Output
    White Bread 1 20
    Brown Bread 2 20


    Table XYZ (holds value)
    Type Value 1 Value 2
    Bread White Bread 20.00 10.00
    Bread Brown Bread 40.00 20.00

    The formula i have is =VLOOKUP($A2,XYZ!$A$1:$D$10, MATCH(ABC!B$2,XYZ!$C$1:$D$1,0)+2,0)

    Help is appreciated!

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: dynamic vlookup

    Here is one suggestion...

    =INDEX(XYZ!$B$2:$C$3,MATCH("Bread "&$A2,XYZ!$A$2:$A$3,0),MATCH($B2,XYZ!$B$1:$C$1,0))

    On Table XYZ...
    B2 = 1
    C2 = 2

    versus how you had it...
    B2 = Value 1
    C2 = Value 2

    If you want the Value with the number, then use a custom format on B2 and C2 >> "Value "0
    HTH
    Regards, Jeff

+ 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. Dynamic vlookup
    By rgendreau in forum Excel General
    Replies: 0
    Last Post: 09-28-2011, 09:40 AM
  2. Dynamic Vlookup again
    By pukks in forum Excel General
    Replies: 9
    Last Post: 04-20-2011, 05:32 PM
  3. Dynamic VLOOKUP
    By Scubades in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-15-2010, 04:48 AM
  4. Using Dynamic VLookup with VBA
    By blucky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2009, 09:09 PM
  5. Dynamic VLOOKUP help
    By PRodgers4284 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-23-2009, 10:27 AM
  6. Dynamic Vlookup
    By excelhelp18 in forum Excel General
    Replies: 1
    Last Post: 06-01-2009, 02:34 AM
  7. dynamic VLookup
    By michaelk68 in forum Excel General
    Replies: 4
    Last Post: 04-10-2009, 06:25 PM
  8. Dynamic VLookUp
    By kaffal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2008, 02:50 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