Consulting

Results 1 to 11 of 11

Thread: Solved: VLOOKUP multiple criteria

  1. #1
    VBAX Mentor
    Joined
    Dec 2009
    Posts
    416
    Location

    Solved: VLOOKUP multiple criteria

    Hello

    I need your help:
    I have an table with 10 columns
    col1 col2 ............. col10
    12.....30.............. 25
    12.....40.............. 85
    12.....50.............. 77
    12.....60.............. 25
    20.....60.............. 56
    26.....60.............. 71

    I like to know if it is possible, that excel, can do this via VLOOKUP
    searching an value from the first col1 then to search on the col2 and then, to give the value from col10 based on condition1 AND condition2

    this is possible?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try this array formula

    =INDEX(J2:J1000,MATCH(1,(A2:A1000="value1")*(B2:B1000="value2"),0))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor
    Joined
    Dec 2009
    Posts
    416
    Location
    Bob, thx for the help..but It is not going.

    match become Match(1,0-false;1-true,0)...and rezult 1, but not the position of the row were the value is.. any idea why?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Shouldn't be the row, because you are matching the first 1 against the array of results.

    You must ARRAY enter it.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Mentor
    Joined
    Dec 2009
    Posts
    416
    Location
    I still don't get it

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    The Match function will return the index of the matching conditions, which indexes into the data range.

    Does it work?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Mentor
    Joined
    Dec 2009
    Posts
    416
    Location
    maybe it is working, but not in my case
    Attached Files Attached Files

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Hey! I array-entered it, and it magically came up with the answer - 50.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  9. #9
    VBAX Mentor
    Joined
    Dec 2009
    Posts
    416
    Location
    I am so lost.
    Attached Files Attached Files

  10. #10
    VBAX Mentor
    Joined
    Dec 2009
    Posts
    416
    Location
    array-entered ..those are the magic words )

    Bob , thank you very much
    Attached Files Attached Files

  11. #11
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Glad you sorted it mate!
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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