+ Reply to Thread
Results 1 to 4 of 4

Vlookup with a criteria

  1. #1
    Registered User
    Join Date
    06-12-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Vlookup with a criteria

    Would it be possible to do vlookup based on a certain criteria? For eg. if the first item is not satisfactory, it will continue to look at the next.

    For example, i have three columns - grade, names and exam results.

    Grade 8 Abel 70%
    Grade 8 Bonnie 90%
    Grade 7 Caleb 30%
    Grade 7 Dawn 90%
    Grade 6 Ethan 50%
    Grade 6 Fiona 40%

    I want to pick one person from Grade 8. But the criteria needs to be > 80%. So my formula should skip Abel and go straight to Bonnie. Is there a way to do vlookup with a criteria? Perhaps using the "IF" function? Thanks! Help is much appreciated.

    My actual list would contain many items - eg. 30 rows of each grade.
    Last edited by doritos; 06-14-2011 at 07:20 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup with a criteria

    If your table is in say,. A2:C7, and you have inputs in F2 and G2 of the grade and percentage in F2 and G2, respectively, then try formula:

    =INDEX($B$2:$B$7,MATCH(1,INDEX(($A$2:$A$7=F2)*($C$2:$C$7>=G2),0),0))

    adjust references to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-12-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Vlookup with a criteria

    Thank you!!! Much appreciated. Tried it out on the small data set and it worked! Now just need to try it out on my actual data. Crossing my fingers!

  4. #4
    Registered User
    Join Date
    06-12-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Vlookup with a criteria

    Hi. I tried it on my actual data. Worked like a gem! Thank you so much. Really appreciate your advice!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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