+ Reply to Thread
Results 1 to 12 of 12

Two Criteria look up

  1. #1
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Question Two Criteria look up

    Dear All,

    Could you please help me in creating two way look up
    Attacehd demo file is for to help me.

    Thank you in advance.
    Attached Files Attached Files
    Click on (*), if you agree.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Two Criteria look up

    Have a look at the attached for one way of accomplishing this.

    BSB.
    Attached Files Attached Files

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Two Criteria look up

    Check the attached file..
    I also suggest you to try ADVANCED FILTER TECHNIQUE if data is larger..
    Use + Sign instead of * if you mean OR ..
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  4. #4
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Two Criteria look up

    can you pl do it by V lookup

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Two Criteria look up

    What is wrong with either of the solutions provided?

    If you want to use VLOOKUP then the easiest way would be to create a "helper column" that combines the two columns into one, then use that as your reference column in VLOOKUP as usual.

    BSB.

  6. #6
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Re: Two Criteria look up

    You can do a vlookup - if you want.
    1. Insert a new A column.
    2. Join 'Team' and 'Person name' with this formula =B2&C2, then vlookup the joined column.
    Alternative: Select the joined column: =B2&", "&C2
    Hope it helped
    Mark the problem as Solved under the Yellow bar up Top right, under Thread Tools, when you received a solution.
    It saves time, to skip already solved threads.

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Two Criteria look up

    Vlookup needs data in ascending order..
    I am afraid that the results may very...
    that why I used Index Match..

    and Yes If you can rearrange your data in ascending order, that would be good for vlookup..

  8. #8
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256

    Re: Two Criteria look up

    Vikas_Gautam
    From Microsoft help page: "If range_lookup is FALSE, the values in the first column of table_array do not need to be sorted."
    =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

    I never use VLOOKUP, unless someone specifically requests it.
    INDEX/MATCH is a better formula (safer, more flexible, etc).

  9. #9
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Two Criteria look up

    Okay thanks for pointing out..
    but what about second match..

  10. #10
    Forum Contributor
    Join Date
    11-10-2012
    Location
    India
    MS-Off Ver
    Excel 2003 to Excel 2010
    Posts
    235

    Re: Two Criteria look up

    As far as i know V look will also be a good options for this

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Two Criteria look up

    =VLOOKUP(A2&B2,CHOOSE({1,2,3},Table1[Team]&Table1[Person Name],Table1[Age],Table1[Area]),2,0)
    =VLOOKUP(A2&B2,CHOOSE({1,2,3},Table1[Team]&Table1[Person Name],Table1[Age],Table1[Area]),3,0)
    try the above array formulas (Ctrl+Shift+Enter) in C2 and D2
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  12. #12
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Two Criteria look up

    For Age:
    =VLOOKUP(A2,IF(B6:B20=B2,A6:D20),3,FALSE)

    For Area:
    =VLOOKUP(A2,IF(B6:B20=B2,A6:D20),4,FALSE)

    Array Formula, means when ENTER you need to press CTRL-SHIFT-ENTER button together, not ENTER alone

    Cheers

+ 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. Replies: 7
    Last Post: 07-07-2014, 09:48 AM
  2. [SOLVED] Find a number closest to 30 in a range with one more criteria (criteria includes text)
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2013, 01:16 PM
  3. Replies: 4
    Last Post: 01-08-2013, 12:37 PM
  4. Replies: 2
    Last Post: 10-05-2011, 12:43 PM
  5. MACROS: Sort by multiple criteria - Create tabs based off of criteria
    By svineyard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2009, 10:48 AM

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