+ Reply to Thread
Results 1 to 5 of 5

find value meeting certain criteria in a range and return that value

Hybrid View

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    21

    find value meeting certain criteria in a range and return that value

    Hello, and thanks for taking time to help.

    This is student testing data. Every column is a different question with a different correct answer, which is marked with a + in the cell. I need to find the correct answer from the range and return it in a different cell at the top of the column. The trickiness for me is that I never know where the correct answer will be found in the range, otherwise I could keep the simple if formula that is in there now.

    I'd prefer to do it with a formula I think, as this is part of a template that many different people will use, who all have different data.

    Hopefully the attached image or file helps to see what I mean.

    sample.jpg

    find and return sample.xlsx

  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: find value meeting certain criteria in a range and return that value

    Hi,

    Perhaps something like:

    =LOOKUP(101,SEARCH("*+*",B5:B15),B5:B15)

    Regards
    Click * below if this answer helped

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

  3. #3
    Registered User
    Join Date
    02-21-2014
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: find value meeting certain criteria in a range and return that value

    Thanks! That worked perfectly. I knew there had to be something relatively simple, and while I've used all the other main lookup functions, somehow I didn't even know there was a lookup.

    Where does the 101 syntax come from? Perhaps there's a link to where you got that from?

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

    Re: find value meeting certain criteria in a range and return that value

    You're welcome.

    Actually, 101 is just an arbitrary number of my choosing. Technically, if you had entries in that column of length greater than this value, the function could fail, though I just reasoned that that would never be the case with grades going in there!

    Regards

  5. #5
    Registered User
    Join Date
    02-21-2014
    Location
    Houston
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: find value meeting certain criteria in a range and return that value

    Got it. Thanks again!

+ 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. [SOLVED] return greatest date in rows meeting criteria
    By wacky_diva in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2013, 12:42 AM
  2. Replies: 2
    Last Post: 06-29-2012, 06:32 AM
  3. Replies: 2
    Last Post: 06-24-2012, 02:55 PM
  4. return a total when meeting only one criteria.
    By Thargor in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-12-2010, 02:36 PM
  5. Return Info After Meeting 2 Criteria
    By sabunabu in forum Excel General
    Replies: 13
    Last Post: 09-27-2007, 04:51 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