+ Reply to Thread
Results 1 to 10 of 10

Index-Small (Failed to Replicate Example)

  1. #1
    Registered User
    Join Date
    07-03-2023
    Location
    London
    MS-Off Ver
    WPS Office
    Posts
    4

    Index-Small (Failed to Replicate Example)

    Dear All,

    I recently tried to replicate an example from a website but failed to get the same results.

    FYI, I'm using the "INDEX-SMALL Combination". By the input of "Action" and "Hugh Jackman", I should have obtained "Logan", "The Wolverine" and "Real Steel" as per the example. However, I only got "Prisoners" and nothing else.

    Please refer my attached excel file for further info, the website is inside the file since I'm not allowed to post any links yet.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Index-Small (Failed to Replicate Example)

    K4=IFERROR(INDEX($B$2:$B$17,AGGREGATE(15,6,ROW($B$2:$B$17)-ROW($B$2)+1/($C$2:$C$17=$K$2)/($D$2:$D$17=$K$3),ROWS($A$1:A1))),"")


    Copy down

  3. #3
    Registered User
    Join Date
    07-03-2023
    Location
    London
    MS-Off Ver
    WPS Office
    Posts
    4

    Re: Index-Small (Failed to Replicate Example)

    Copy pasted your formula.. still got "Prisoners"..
    Attached Files Attached Files

  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
    44,063

    Re: Index-Small (Failed to Replicate Example)

    It looked OK to me... but try:

    =IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($B$2:$B$17)/(($C$2:$C$17=$I$2)*($D$2:$D$17=$I$3)),ROWS($I$4:I4))),"")
    Attached Images Attached Images
    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 Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Index-Small (Failed to Replicate Example)

    for me works
    Attached Files Attached Files

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,428

    Re: Index-Small (Failed to Replicate Example)

    Cell H4 array formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    OR

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-03-2023
    Location
    London
    MS-Off Ver
    WPS Office
    Posts
    4

    Re: Index-Small (Failed to Replicate Example)

    Sorry I'm back.. Yes it worked thanks..

    I've looked up the "Aggregate" function and kinda understand it from the video, but not the one inside my excel sheet hahaha..

    AGGREGATE(15,6,ROW($B$2:$B$17)/(($C$2:$C$17=$H$2)*($D$2:$D$17=$H$3))
    - Why function num = 15(small)?
    - And I believe ($C$2:$C$17=$H$2)*($D$2:$D$17=$H$3) is referring to the conditions required?

    Anyway I've posted an example on what I actually need to do in the new "Example" excel file.

    Basically I need the cell to automatically choose the types (A,B,C,D) required because I wanna separate and group them, then will use vlookup to find the "Title" based on the returned "Ref no.".
    E.g. For Type A table, it will have to return Ref no. 1,5 and then 9 in the subsequent cells, then vlookup should return their respective title.

    Thank you.
    Attached Files Attached Files

  8. #8
    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,063

    Re: Index-Small (Failed to Replicate Example)

    Use:

    =INDEX($A:$A,AGGREGATE(15,6,ROW($A$4:$A$13)/($B$4:$B$13=$F$2),ROWS($F$4:F4)))


    and then to get rid of errors;

    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($A$4:$A$13)/($B$4:$B$13=$F$2),ROWS($F$4:F4))),"")

    Refer back to Post 4, where I used whole-column references for INDEX

  9. #9
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Index-Small (Failed to Replicate Example)

    one formula

    F4=IFERROR(INDEX(INDEX($A$4:$C$13,,MATCH(F$3,$A$3:$C$3,0)),AGGREGATE(15,6,ROW($A$4:$A$13)-ROW($A$4)+1/($B$4:$B$13=$F$2),ROWS($A$1:A1))),"")

    Copy across and down

  10. #10
    Registered User
    Join Date
    07-03-2023
    Location
    London
    MS-Off Ver
    WPS Office
    Posts
    4

    Re: Index-Small (Failed to Replicate Example)

    Managed to get my cells working nicely.

    Thanks to everyone who helped!

+ 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. VBA Code for MIN INDEX SMALL ROW ROW INDEX
    By tiptonaa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2019, 09:34 AM
  2. [SOLVED] Combining INDEX/MATCH with several criteria and INDEX/SMALL
    By Dresas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-15-2018, 11:02 AM
  3. [SOLVED] Index Small using Or
    By Andy Swain in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-27-2017, 07:17 AM
  4. [SOLVED] Index() Small() Row()
    By Shakeel Ahmad in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-05-2015, 12:36 AM
  5. Match Index, Small Index with Concatenate
    By kharding15 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-30-2015, 05:38 PM
  6. INDEX and SMALL help
    By markgilmore in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-02-2015, 01:02 PM
  7. [SOLVED] Failed Lookup based on small function
    By MattRNR in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2013, 09:03 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