Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Oct 2001
    Location
    Newport, Gwent, Wales
    Posts
    257
    Thanks
    0
    Thanked 0 Times in 0 Posts

    vlookup using multiple columns (win XP, Office 2k)

    Hello again.

    I'm trying to get a spreadsheet to return a single value, from column Z, where Column A matches Column X and Column B matches column Y.

    I've used vlookup extensively in the past, it can't seem to be able to find out how to make it do this, or even if it will.

    I found a few posts referring to the use of vlookup and match, but they seem to be directed at finding an intersection in a matrix.

    Can anyone help, or should I just give up and dump my data into Access and go from there?

    Thanks in advance

    Ian

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: vlookup using multiple columns (win XP, Office 2k)

    Try this as an array formula (confirm with Ctrl+Shift+Enter):

    =INDEX(Z1:Z1000,MIN(IF(A1:A1000&"|"&B1:B1000=X1:X1 000&"|"&Y1:Y1000,ROW($1:$1000))))

    or

    =INDEX(Z1:Z1000,MIN(IF((A1:A1000=X1:X1000)*(B1:B10 00=Y1:Y1000),ROW($1:$1000))))

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •