+ Reply to Thread
Results 1 to 3 of 3

Return All values matching criteria of Another Column

Hybrid View

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    Michigan
    MS-Off Ver
    2011
    Posts
    2

    Return All values matching criteria of Another Column

    Hello,

    I am trying to find a formula similar to Vlookup/Hlookup. I think it will be similar to a Index as well. Basically I have Two columns that are update weekly. Column A is a list of Dates, Column B is a list of team members (where team members are repeated).

    I need to create a table where the Team members name will be a header all all dates that match the team member will be listed. I know I can just put a filter then copy and paste them over, but I was hoping for a formula that would automatically do that since there's about 300 lines that are updated weekly.

    I attached a screenshot of an example. The Green box is where I am looking to put the formulas.
    ScreenHunter_10.jpg

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Return All values matching criteria of Another Column

    Enter array formula in D2 and drag formula across and down

    ***Array formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
    You will know the array is active when you see curly braces { } appear around your formula.
    If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Formula: copy to clipboard
    =IFERROR(INDEX($A:$A,SMALL(IF($B$2:$B$10=D$1,ROW(B$2:B$10)),ROWS(D$2:D2))),"")

    Or you can also use regular formula (for Excel 2010 and up)
    Formula: copy to clipboard
    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($B$2:$B$10)/($B$2:$B$10=D$1),ROWS(D$2:D2))),"")

    Format as Date
    v A B C D E F G
    1 Date Team Member Joe Nick Sam Cody
    2 9/1/2017 Joe 9/1/2017 9/8/2017 9/15/2017 9/29/2017
    3 9/8/2017 Nick 10/6/2017 9/22/2017 10/20/2017 10/27/2017
    4 9/15/2017 Sam 10/13/2017
    5 9/22/2017 Nick
    6 9/29/2017 Cody
    7 10/6/2017 Joe
    8 10/13/2017 Nick
    9 10/20/2017 Sam
    10 10/27/2017 Cody
    Attached Files Attached Files
    Last edited by AlKey; 10-11-2017 at 10:44 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Return All values matching criteria of Another Column

    Here is an thread to filter with formulas
    https://www.excelforum.com/tips-and-...-examples.html
    Attached is a simple example

    edit:Right on AlKey....simpler than mine
    Attached Files Attached Files
    Last edited by davesexcel; 10-11-2017 at 10:54 AM.

+ 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: 8
    Last Post: 05-08-2017, 09:17 PM
  2. Return values from column matching criteria VBA
    By ChipsSlave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-11-2016, 12:44 PM
  3. [SOLVED] VLOOKUP between workbooks, don't return results matching a 2nd column criteria?
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-09-2014, 11:58 AM
  4. Replies: 5
    Last Post: 08-01-2014, 04:31 AM
  5. [SOLVED] Return cell values for non-matching & matching criteria
    By jenz_skallemose in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-13-2012, 11:52 AM
  6. matching values based on criteria and return values from another columns
    By lizard54 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 11:29 AM
  7. Replies: 2
    Last Post: 06-12-2012, 06:39 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