+ Reply to Thread
Results 1 to 10 of 10

1 value and return multiple results

  1. #1
    Registered User
    Join Date
    07-28-2021
    Location
    Belgium
    MS-Off Ver
    Microsoft Office Professional Plus 2019
    Posts
    11

    1 value and return multiple results

    Hi ,

    I need to have al incidents created by a user in my "Result" sheet.
    I've tried to use the Index & Match function combined with aggregate. But this seems not to work for me.
    See --> xelplus.com/return-multiple-match-values-in-excel/[/url]

    This just an example my actual sheet contains more columns.

    ps: I cannot use the filter function

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: 1 value and return multiple results

    Hi,
    put this in A2 and across:
    =IFERROR(INDEX(Data!$B$1:$B$13,AGGREGATE(15,6,IF(Data!$C$1:$C$13=Result!A$1,ROW(Data!$C$1:$C$13)),ROWS(Data!$A$1:Data!A1))),"")
    Attached Files Attached Files

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: 1 value and return multiple results

    This works fine here:

    =IFERROR(INDEX(Data!$B:$B,SMALL(IF(Data!$C:$C=A$1,ROW($A:$A)),ROWS($A$1:A1))),"")

    AliGW on MS365 Insider (Windows) 64 bit

    A
    B
    C
    D
    1
    Piet Jan Bart Johnny
    2
    INC0125 INC0126 INC0127 INC0128
    3
    INC0132 INC0131 INC0130 INC0129
    4
    INC0136 INC0133 INC0134
    5
    INC0135
    6
    Sheet: Result
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    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
    43,986

    Re: 1 value and return multiple results

    If I am reading this correctly...

    Belinda's formula is very complicated...

    Ali's is an array formula (which should never be used on whole columns) and she forgot to mention it was an attay formula.

    This is a normal formula (just enter):

    =IFERROR(INDEX(Data!$B:$B,AGGREGATE(15,6,ROW(Data!$C$2:$C$20)/(Data!$C$2:$C$20=A$1),ROWS(A$2:A2))),"")
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: 1 value and return multiple results

    Ali's is an array formula (which should never be used on whole columns) and she forgot to mention it was an attay (sic) formula.
    Agreed and yes - I almost always forget now I have MS365!!! Oops ...

    BUT the OP has Excel 2019, so may not need to array enter ...

  6. #6
    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
    43,986

    Re: 1 value and return multiple results

    I think it's only non-array from 365.

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: 1 value and return multiple results

    I think mine is also an array......needs to be confirmed with CTRL + SHIFT + ENTER

  8. #8
    Registered User
    Join Date
    07-28-2021
    Location
    Belgium
    MS-Off Ver
    Microsoft Office Professional Plus 2019
    Posts
    11

    Re: 1 value and return multiple results

    Thank you Glenn!
    This was the solution I was looking for!

  9. #9
    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
    43,986

    Re: 1 value and return multiple results

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: 1 value and return multiple results

    Quote Originally Posted by ToonV1 View Post
    Thank you Glenn!
    This was the solution I was looking for!
    There were two others (including myself) who offered help. Did we not deserve a 'thank you'? Plesae try to remember that EVERYONE here is giving generously of their free time and NOBODY is bing paid to help you. Common courtesy costs you nothing more than a few seconds of your time.

+ 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. [SOLVED] Macro- Search multiple criteria in spreadsheet return with multiple results in new sheet
    By nicebeaches in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2018, 04:47 PM
  2. [SOLVED] Lookup to match multiple criteria and return multiple results excluding duplicates.
    By kris3012 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-13-2018, 11:06 AM
  3. Drop Down List to return multiple results in multiple cells
    By Joshua27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2014, 11:50 AM
  4. [SOLVED] Is it possible to lookup multiple values and return multiple rows of results?
    By justin11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2013, 12:02 PM
  5. Search multiple sheets and return list of multiple results
    By Abuck in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-07-2012, 11:59 AM
  6. User Form to Search multiple Criteria to return multiple Results
    By Calieth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-16-2011, 11:57 AM

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