+ Reply to Thread
Results 1 to 6 of 6

Index Match in Alphabetical Order with Multiple 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 Multiple Criteria

    I would like to have an index match function provide a unique list of items in alphabetical order and with multiple criteria. This is an additional criteria related to my previous thread, https://www.excelforum.com/excel-for...-criteria.html.

    Column A may include "Y", which would determine if it should be included. To sum this up, two criteria to index match in alphabetical order is based on if column B includes "AI" and Column A includes "Y". Column H would have the resulting solutions. Hope this helps.

    Thank you,
    Tyler

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Index Match in Alphabetical Order with Multiple Criteria

    your dataset appears to be in A-Z order implying you don't need to re-sort in the results but rather return them in the order they are found, correct?

    further to the above, there are no duplicates in your sample either -- if that's the case then the ISNUMBER(MATCH)) piece becomes superfluous.

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


    the above assumes you're using XL2007 per your profile, rather than a later version.

  3. #3
    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 Multiple Criteria

    Quote Originally Posted by XLent View Post
    your dataset appears to be in A-Z order implying you don't need to re-sort in the results but rather return them in the order they are found, correct?

    further to the above, there are no duplicates in your sample either -- if that's the case then the ISNUMBER(MATCH)) piece becomes superfluous.

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


    the above assumes you're using XL2007 per your profile, rather than a later version.
    XLent,

    Please see revised sheet attached to this post. The solution you provided only lists items uniquely without alphabetical sorting. These will need A-Z order with no duplicates.

    Thank you for catching this.
    Last edited by T86157; 02-27-2019 at 12:48 PM.

  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 Multiple Criteria

    Please try at I2

    =IFERROR(INDEX($D$2:$D$52,MATCH(AGGREGATE(15,6,COUNTIF($D$2:$D$52,"<"&$D$2:$D$52)/NOT(COUNTIF(I$1:I1,$D$2:$D$52))/($B$2:$B$52="AI")/($A$2:$A$52="y"),1),INDEX(COUNTIF($D$2:$D$52,"<"&$D$2:$D$52),),)),"")

  5. #5
    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 Multiple Criteria

    Thanks Bo_Ry, this worked out!

  6. #6
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Index Match in Alphabetical Order with Multiple Criteria

    no need to quote prior posts in full, you'll get into trouble with the mods!

    below should work -- does not require array entry (c/o additional INDEX -- no more efficient but easier to commit / edit etc!)

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


    edit: per earlier comment I assumed XL2007 (i.e. no AGGREGATE)

+ 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] Index Match in Alphabetical Order with Criteria
    By T86157 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-25-2019, 09:57 AM
  2. [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
  3. 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
  4. 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
  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