+ Reply to Thread
Results 1 to 8 of 8

Index Match in Alphabetical Order with Criteria

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Index Match in Alphabetical Order with Criteria

    I would like to have an index match function provide a unique list of items in alphabetical order and at one criteria for now.

    Please Login or Register  to view this content.
    But I think what is messing up this is the criteria part that shows +IF($A$2:$A$52<>"AI",1,0). Without this, I get the entire list, sorted into alphabetical order.

    When looking at the attached spreadsheet, I'd like to filter out only if column A includes "AI" and then uniquely sort this in alphabetical order.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Index Match in Alphabetical Order with Criteria

    Pl see file . I have given example in Sheet2.
    ARRAY formula in G2 then drag down.
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 02-25-2019 at 02:06 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Index Match in Alphabetical Order with Criteria

    Pl see file . I have given example in Sheet2.
    ARRAY formula in G2 then drag down. This formula avoids duplicates if any.
    Please Login or Register  to view this content.

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

    Re: Index Match in Alphabetical Order with Criteria

    Please try at H2 with CSE and drag down

    =IFERROR(INDEX($C$2:$C$52,MATCH(AGGREGATE(15,6,(IF($A$2:$A$52="AI",COUNTIF($C$2:$C$52,"<"&$C$2:$C$52)/NOT(COUNTIF(H$1:H1,$C$2:$C$52)))),1),COUNTIF($C$2:$C$52,"<"&$C$2:$C$52),)),"")
    Attached Files Attached Files

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Index Match in Alphabetical Order with Criteria

    An alternative non-CSE solution:

    =IF(ROWS(A$2:A2)>COUNTIF(A$2:$A$52,"AI"),"",LOOKUP(1,0/FREQUENCY(ROWS(A$2:A2),COUNTIFS(A$2:$A$52,"AI",C$2:C$52,"<="&C$2:C$52)),C$2:C$52))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Index Match in Alphabetical Order with Criteria

    Including the condition $A$2:$A$52="AI"
    ARRAY in G2 then copied down.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Index Match in Alphabetical Order with Criteria

    Ah, just realised that you might be dealing with cases in which there are duplicates in column C corresponding to "AI". If so, ignore my solution.

    Regards

  8. #8
    Forum Contributor
    Join Date
    05-17-2012
    Location
    CA, USA
    MS-Off Ver
    Microsoft Excel for Microsoft 365
    Posts
    163

    Re: Index Match in Alphabetical Order with Criteria

    Thanks Bo_Ry and kvsrinivasamurthy! Both of those worked well =)

+ 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] can a index be placed in alphabetical order?
    By AceForSale in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-02-2016, 02:26 PM
  2. index match with multiple returns in alphabetical order
    By mamachrissy1028 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-22-2016, 01:30 PM
  3. Copy tabs names to index sheet in alphabetical order
    By cjharley1450 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2015, 01:00 PM
  4. [SOLVED] Index-Match which does not require alphabetical sort of names
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2015, 12:39 PM
  5. [SOLVED] INDEX names in alphabetical order. Horizontally.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2013, 11:43 AM
  6. Densed Rank with 2 critieria with Alphabetical Order as one criteria
    By hamson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-19-2013, 06:15 AM
  7. Replies: 3
    Last Post: 05-01-2010, 10:23 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