+ Reply to Thread
Results 1 to 2 of 2

is it possible to use Index Match and return multiple results (Nth) all in ONE cell?

  1. #1
    Registered User
    Join Date
    12-16-2015
    Location
    East Coast
    MS-Off Ver
    2016
    Posts
    33

    is it possible to use Index Match and return multiple results (Nth) all in ONE cell?

    Good morning!

    Wondering if we can take the index match Nth formula but instead of having each Nth result in its own cell, we can concatenate all results into one cell.
    index match Nth formula example: https://exceljet.net/formula/get-nth...th-index-match

    So here is how I currently use the index match formula:

    INDEX(ResultRange,
    SMALL(
    IF(
    (CriteriaRange1=Criteria1)*
    (CriteriaRange2=Criteria2),
    ROW(RowRange1)-ROW(INDEX(RowRange1,1,1))+1),
    ROWS(B$2:B2)

    I have to be honest, not sure how the last section really works (after ROW), I just know that it returns the row number of the cell that matches the criteria and ROWS tells the formula which Nth result it should return depending on the current row number.

    All I want to do now is concatenate each result into one cell. So I want to have the 1st_result & 2nd_result & 3rd_result. This means I cant use the current row to determine which Nth result it should show.
    the first issue i see, is that since we can no longer use row, we will need to repeat the use of index match for every Nth result we expect, and the number of Nth results will be limited by the number of times we use index match. In my case, thats ok since I expect no more than say 20 results, although I am worried about the amount of resources this will use.
    I am guessing that it will involve the COUNTIFS function to count how many results there are and the IF function could be use to avoid running each index match function, only running it if the number of results is equal or less than the Nth result were asking for.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: is it possible to use Index Match and return multiple results (Nth) all in ONE cell?

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please DO NOT attach a picture of an Excel sheet (I do not have the patience to re-type any/all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. For example, don't show text in a column if it's really a number. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually). To be honest, I am not interested in seeing a non-working formula... or a pile of blank cells. However, I am very interested in seeing your EXPECTED results in their EXPECTED location.

    4. Try not to use merged cells. They cause lots of problems and are DEFINITELY best avoided!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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 across multiple Sheets to return results
    By awallace24335 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2019, 06:22 AM
  2. Replies: 1
    Last Post: 06-27-2017, 07:54 PM
  3. Index/Match Formula to return multiple results
    By MikeSta4ord in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-11-2015, 11:32 AM
  4. [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
  5. Using Index And Match To Return Potential Multiple Results To One Cell
    By jcaynes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2013, 10:41 AM
  6. Using Index Match to return multiple results with very messy data.
    By falkon007 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-30-2013, 12:28 PM
  7. Can Index or Match return multiple results?
    By waverider in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-30-2007, 10:06 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