+ Reply to Thread
Results 1 to 4 of 4

Match Index to return multiple values

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    United States
    MS-Off Ver
    Excel 360
    Posts
    8

    Match Index to return multiple values

    Hello,

    I am trying to write a formula that will search a large data field for a given office number and return a list of name from that office if they subscribe to a program. I have included a very basic version of what I am trying to do as an example. In this example the array would search for the value in I4 in column B and check that Column D is "Yes" and return a list of names that meet those two criteria.

    The data in the real spread sheet is quite a bit more and has over 10k rows and around 100 columns. This is the formula I have started but it is returning a Name error. Also it is only looking at the office number and I have not included the subscriber requirement yet.

    =IFERROR(INDEX('Total Data'!$H$1:$H$9120, SMALL(IF('Total Data'!$B$9:$B$9120= VLOOKUP('HO Data Results'!B8, MP_Table, 2,FALSE), ROW('Total Data'!$H$1:$H$9120)-ROW('Total Data'!$H$8)+1), ROWS('Total Data'!$H$8:'Total Data'!$H$8))),””)

    If I run the formula not as an array it will return one name, if I run it as an array I get a #Name? error.

    Thanks for the help!Example.xlsx

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Match Index to return multiple values

    Try this non-array formula

    =IF(ROWS(A$1:A1)>COUNTIFS($B$2:$B$21,$I$4,$D$2:$D$21,"Yes"),"",INDEX($E$2:$E$21,SMALL(INDEX(($B$2:$B$21=$I$4)*($D$2:$D$21="Yes")*(ROW($B$2:$B$21)-ROW($B$2)+1),),COUNTIF($B$2:$B$21,"<>"&$I$4)+COUNTIF($D$2:$D$21,"<>"&"Yes")-COUNTIFS($B$2:$B$21,"<>"&$I$4,$D$2:$D$21,"<>"&"Yes")+ROWS(A$1:A1))))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Match Index to return multiple values

    I don't see anything in your example called MP_Table. If you refer to a named range, but don't name the range, it will cause a Name Error.

    I just went with:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    07-17-2013
    Location
    United States
    MS-Off Ver
    Excel 360
    Posts
    8

    Re: Match Index to return multiple values

    I think this is going to work well!

    Thank you so much!

+ 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 function to return multiple values in a row or column
    By bping in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-10-2015, 04:57 PM
  2. Using Index/Match to return multiple values for one match
    By superboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2014, 06:21 PM
  3. [SOLVED] return multiple values in 1 column via index / match
    By Bax in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2013, 06:54 AM
  4. Match index from multiple spreadsheets-Return sum of values
    By Bravo33 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2013, 02:03 PM
  5. Need to look up a value and return multiple values-INDEX/MATCH?
    By abigail99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-03-2012, 10:05 AM
  6. Replies: 2
    Last Post: 07-17-2012, 11:53 AM
  7. [SOLVED] How to use Index Match to return multiple values
    By pingpoeng in forum Excel General
    Replies: 2
    Last Post: 04-09-2012, 09:58 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