+ Reply to Thread
Results 1 to 6 of 6

dynamic vlookup

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

    dynamic vlookup

    Hi All,

    Need help with a dynamic vlookup which would look into First Name and Last Name from Sheet 2 and populate into Sheet 1 under salary.
    I should also able to drag the formula for all the rows below.

    Sheet 1
    First Name Last Name Age Salary
    James Smith 35
    James Anderson 40
    James Clark 35
    John Lewis 45
    John Walker 25
    Mark Reeed 20
    Richard Lopez 35


    Sheet2
    First Name Last Name Salary
    James Smith 1035
    James Anderson 1040
    James Clark 2035
    John Lewis 2045
    John Walker 3025
    Mark Reeed 3020
    Richard Lopez 4035

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: dynamic vlookup

    Try

    D2=INDEX(Sheet2!C:C,MATCH(Sheet1!A2&Sheet1!B2,INDEX(Sheet2!A:A&Sheet2!B:B,0),0))
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

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

    Re: dynamic vlookup

    It is returning the word 'Salary' instead of actual salary in number!

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: dynamic vlookup

    Then just change the Index array part. The below highlighted with red part need to change, you just need to check in which column your actual salaries are mentioned.

    =INDEX(Sheet2!C:C,MATCH(Sheet1!A2&Sheet1!B2,INDEX(Sheet2!A:A&Sheet2!B:B,0),0))

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

    Re: dynamic vlookup

    Hi Ankur,

    Thanks for your prompt response and it works now. Thanks for explaining to me. Much appreciated!

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: dynamic vlookup

    Glad to help you and request you to please mark 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. Dynamic vlookup
    By MikeFranz123 in forum Excel General
    Replies: 3
    Last Post: 04-25-2012, 08:21 AM
  2. Dynamic vlookup
    By rgendreau in forum Excel General
    Replies: 0
    Last Post: 09-28-2011, 09:40 AM
  3. Dynamic Vlookup again
    By pukks in forum Excel General
    Replies: 9
    Last Post: 04-20-2011, 05:32 PM
  4. Dynamic VLOOKUP help
    By PRodgers4284 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-23-2009, 10:27 AM
  5. Dynamic Vlookup
    By csdrex87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-22-2009, 07:48 PM
  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