+ Reply to Thread
Results 1 to 6 of 6

Count if or Index Match with multiple Rows

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    168

    Count if or Index Match with multiple Rows

    Okay so I have a bit of a complicated formula - at least for me - that I'm working on. What I'm trying to do is compare locations and if two people have the same location I want the other person's name in column D.

    So right now my formula looks like this:

    =IF(C2>1,INDEX(B:B,MATCH(E2,E:E,0)),"")

    Trouble is, that's only going to pull the first row that the index match finds. I need it to pull the missing name. So sometimes that means the first row the index match finds will be good, other times it should be the second row the index match finds, and still others it should be the third row that the index match finds.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,488

    Re: Count if or Index Match with multiple Rows

    Are you still using Excel 2010? If not, please update your profile.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    168

    Re: Count if or Index Match with multiple Rows

    I've updated it.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,788

    Re: Count if or Index Match with multiple Rows

    How about
    Formula: copy to clipboard
    =TEXTJOIN(", ",,FILTER($B$2:$B$9,($E$2:$E$9=E2)*($B$2:$B$9<>B2),""))

  5. #5
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    Microsoft 365
    Posts
    168

    Re: Count if or Index Match with multiple Rows

    Okay that totally works. I've never seen textjoin or filter before. I'll have to look into them.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,788

    Re: Count if or Index Match with multiple Rows

    Glad to help & thanks for the feedback.

+ 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. Index/Match Multiple Rows
    By Darkcloud617 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2021, 12:49 PM
  2. Index Match multiple rows
    By RonronWaldey in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-25-2019, 09:08 AM
  3. [SOLVED] INDEX/MATCH (multiple critera in multiple rows and columns)
    By swma in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-01-2016, 10:02 AM
  4. Replies: 11
    Last Post: 02-01-2016, 04:58 PM
  5. Help using Index/Match for multiple rows with same value
    By Alex.Venables20 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-22-2015, 01:41 PM
  6. [SOLVED] SUM(IF(INDEX(MATCH()))) Confusion to return multiple results and count how many
    By athickett in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-06-2014, 02:46 PM
  7. [SOLVED] Index/match/count with multiple criteria
    By merlyn45 in forum Excel General
    Replies: 11
    Last Post: 05-11-2012, 04:13 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