+ Reply to Thread
Results 1 to 3 of 3

Returning name list based on 2 criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    13

    Returning name list based on 2 criteria

    Good afternoon everyone,

    I'm working on an Excel template that has to return a list of employee names matching two criteria from information housed on a table.. The idea that I had was for a user to select a job function from a drop down and then have the formula A) Find the job function from the table, B) Find all instances of "Yes" under the job function and then C) Display the employee name(s) if true.

    I was trying to use a combination of Index and Small to return the data, but, haven't had much luck with expanding it from this format (below) to return instances of "Yes"
    {=INDEX($A$2:$F$15,SMALL(IF($C$3:$F$15=$B$18,ROW($A$3:$A$15)),ROW(1:1))-2,1)}

    Any assistance would be much appreciated, I've attached a sample excel file to illustrate
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Returning name list based on 2 criteria

    In A21 copied down, the arrayed function

    =IFERROR(INDEX($A$3:$A$15,SMALL(IF(INDEX($C$3:$F$15,,MATCH($B$18,$C$2:$F$2,0))="Yes",ROW($A$3:$A$15)-2),ROWS($A$1:$A1))),"")
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  3. #3
    Registered User
    Join Date
    01-04-2013
    Location
    Pittsburgh, Pennsylvania
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Returning name list based on 2 criteria

    That worked! Thanks for the assistance ChemistB

+ 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. Returning value based on two criteria
    By ConfusedaboutVBA in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2013, 11:41 PM
  2. Returning value based on search criteria
    By kolonel in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-17-2013, 09:16 PM
  3. Help Returning a Name from a Calendar Based on 2 Criteria
    By Landonutk12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2013, 03:37 PM
  4. [SOLVED] Returning all values based on criteria
    By SimonXL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2012, 01:19 PM
  5. Returning a value based on certain criteria
    By stait in forum Excel General
    Replies: 5
    Last Post: 12-21-2011, 02:03 PM

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