+ Reply to Thread
Results 1 to 4 of 4

Return name based on 2 criteria

  1. #1
    Registered User
    Join Date
    04-10-2012
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Talking Return name based on 2 criteria

    Hi ALL,

    Would someone be able to help me with my formula. I would like to have a name return based on 2 critera accross 2 worksheets. Any help will be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Return name based on 2 criteria

    QUESTIONS123,

    Welcome to the forum!
    Attached is a modified version of your example workbook. Is something like that what you're looking for?
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-10-2012
    Location
    NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Return name based on 2 criteria

    Thank You tigeravatar!!! This is exactly what I was looking for. Would you mind telling me why the "1" needs to be in front of the nested Index function?

    =IFERROR(INDEX(DATA!$B$2:$B$6,MATCH(1,INDEX((DATA!$A$2:$A$6=$A7)*(DATA!$C$2:$C$6=0.5)*(DATA!$B$2:$B$6<>D7),),0)),"")

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Return name based on 2 criteria

    The 1 is part of the Match formula. Specifically, Match is looking for the first 1 to appear from the resulting Index. The index formula does true/false checks based on the criteria. True evaluates to 1 and False evaluates to 0. Anything that's true in all of the checks will be 1*1*1 = 1, and anything that has any falses will result in 0. So the match finds the first item that passes all of the conditions and returns that position number to the original index, which provides the formula result.

+ 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