+ Reply to Thread
Results 1 to 17 of 17

FILTER instead of INDEX&SMALL

  1. #1
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    FILTER instead of INDEX&SMALL

    Hi everyone.

    Is it possible to use FILTER or XLOOKUP or a new function instead of INDEX&SMALL combination to filter the desired result(s) with a shorter formula?

    And how to get the column header of a cell (given) in a table with duplicate values?

    Please see the attached sample.

    Thank you.

  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: FILTER instead of INDEX&SMALL

    No file attached!!
    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

  3. #3
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    Re: FILTER instead of INDEX&SMALL

    This is the sample
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    Re: FILTER instead of INDEX&SMALL

    sorry it was a little bit difficult to attach.

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

    Re: FILTER instead of INDEX&SMALL

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    Re: FILTER instead of INDEX&SMALL

    Thank you fot the quick reply.
    this seems to be ok. How about the column headers?( Filled manualy in the right part)

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

    Re: FILTER instead of INDEX&SMALL

    Didn't realise you wanted them as well, just though you wanted to replace the index formula with filter.

  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,099

    Re: FILTER instead of INDEX&SMALL

    I used this for the first part... pretty similar to Fluff's... still going in circles with Part 2.

    =FILTER(GivenTable!A2:C13,MMULT(--(GivenTable!D2:H13=A2),TRANSPOSE(COLUMN(GivenTable!D2:H13)^0)))

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

    Re: FILTER instead of INDEX&SMALL

    Could Name1 occur multiple times on the same row?

  10. #10
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    Re: FILTER instead of INDEX&SMALL

    on the same row NO

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

    Re: FILTER instead of INDEX&SMALL

    Ok, how about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    Re: FILTER instead of INDEX&SMALL

    I could not use it. Can you put the formula to the sample file.

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

    Re: FILTER instead of INDEX&SMALL

    Here you go
    Attached Files Attached Files

  14. #14
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: FILTER instead of INDEX&SMALL

    Please try

    =LET(z,A2,y,GivenTable!A2:H13,h,GivenTable!D1:H1,i,SEQUENCE(ROWS(y)),j,SEQUENCE(,COLUMNS(y)),rc,SMALL(IF(y=z,i*100+j),SEQUENCE(COUNTIFS(y,z))),IFERROR(INDEX(y,rc/100,{1,2,3,-1}),INDEX(h,MOD(rc,100)-3)))
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    Re: FILTER instead of INDEX&SMALL

    Thank you all very much.

  16. #16
    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
    44,496

    Re: FILTER instead of INDEX&SMALL

    If you are using FILTER, 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


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

    Re: FILTER instead of INDEX&SMALL

    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. 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. Match Index, Small Index with Concatenate
    By kharding15 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-30-2015, 05:38 PM
  4. INDEX SMALL and ROW
    By MAG27 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-11-2015, 09:59 PM
  5. INDEX and SMALL help
    By markgilmore in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-02-2015, 01:02 PM
  6. index small - filter data
    By jw01 in forum Excel General
    Replies: 4
    Last Post: 12-04-2012, 11:30 AM
  7. Small if Array K- Use with filter
    By hiker100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2011, 09:41 AM

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