+ Reply to Thread
Results 1 to 7 of 7

Vlookup based on multiple criteria problem

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    Jersey, Channel Islands
    MS-Off Ver
    Excel 2010
    Posts
    2

    Vlookup based on multiple criteria problem

    Hi all,

    I think this should be fairly simple to formulate, but I'm struggling with it myself. I need to retrieve cell data based on two criteria but am having trouble as the second criteria needs to be retrieved only from a range that depends on the first criteria. I have three columns; Employee name, Month and Wages. I need a formula that returns the correct cell value from column 3 when I select Employee name and Month from two drop down menus. Attached is an example file.

    Many thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Vlookup based on multiple criteria problem

    Hi,

    Perhaps:

    =INDEX(C:C,MATCH(A46,A:A,0)+TEXT(1&B46&2013,"m")-1)

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup based on multiple criteria problem

    Please see attached file.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    11-05-2013
    Location
    Jersey, Channel Islands
    MS-Off Ver
    Excel 2010
    Posts
    2

    Wink Re: Vlookup based on multiple criteria problem

    XOR LX and AlKey, thanks very much for your help!

    Both work great, but I would probably favour XOR LX's formula as to avoid necessitating putting a value in the name column on each row.

    XOR LX:- how does your formula know to pick up the correct month as the example shows 3 'Januarys' etc.

    Great stuff, thanks

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Vlookup based on multiple criteria problem

    You're welcome.

    The formula works by first searching for the position of the desired name and then offsetting that position downwards based on the month.

    I have to say that it's not a very flexible approach (it depends on your months being in order, for example) so, if you're going to be extending this, it's likely that an approach similar to that offered by AlKey would be preferable.

    Regards

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup based on multiple criteria problem

    Quote Originally Posted by XOR LX View Post
    You're welcome.

    The formula works by first searching for the position of the desired name and then offsetting that position downwards based on the month.

    I have to say that it's not a very flexible approach (it depends on your months being in order, for example) so, if you're going to be extending this, it's likely that an approach similar to that offered by AlKey would be preferable.

    Regards
    XOR LX, still I must say it was a very interesting and elegant approach!

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Vlookup based on multiple criteria problem

    Thanks!

+ 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. Vlookup with multiple rows based on criteria
    By MarianneBal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-22-2013, 06:27 AM
  2. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  3. [SOLVED] Vlookup and multiple approximate criteria problem
    By Athomemom in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2013, 02:28 PM
  4. [SOLVED] VLOOKUP problem with multiple criteria
    By B-dub in forum Excel General
    Replies: 8
    Last Post: 05-15-2012, 05:53 PM
  5. Vlookup based on multiple criteria
    By blessedme in forum Excel General
    Replies: 0
    Last Post: 10-05-2010, 12:40 PM

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