+ Reply to Thread
Results 1 to 8 of 8

can a index be placed in alphabetical order?

  1. #1
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Silver Spring
    MS-Off Ver
    Excel 2016
    Posts
    212

    can a index be placed in alphabetical order?

    Is there a way to have the list that is being sent to output in alphabetical order with a formula (without using a filter)?

    =IFERROR(INDEX(OSList, MATCH(0,IF(ISBLANK(OSList),1,COUNTIF($K$25:K25, OSList)), 0)),"")

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: can a index be placed in alphabetical order?

    You should describe your sheet structure and the values that you have rather than giving a formula that does not work.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: can a index be placed in alphabetical order?

    Try this...

    Data Range
    A
    B
    1
    Data
    Sorted
    2
    C
    A
    3
    A
    B
    4
    D
    C
    5
    E
    D
    6
    A
    E
    7
    E
    8
    B
    9
    C
    10
    C
    11
    ------
    ------


    This array formula** entered in B2:

    =IFERROR(INDEX(A$2:A$10,MATCH(TRUE,COUNTIF(A$2:A$10,"<"&A$2:A$10)=SUM(COUNTIF(A$2:A$10,B$1:B1)),0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Silver Spring
    MS-Off Ver
    Excel 2016
    Posts
    212

    Re: can a index be placed in alphabetical order?

    Tony,
    This formula works when creating a new blank spreadsheet but when applying it using it on my formula it comes up blank. I believe this is because the cells its pulling from (A$2:A$10) are not just static text, lines A$2 through A$10 are formulas as well.
    Is there an easy way to fix this?
    I tried creating another row and just hit =A$2 and down the row but it still comes up blank.
    Thanks

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: can a index be placed in alphabetical order?

    Can you post a SMALL sample file so I can see what's happening?

    The key word is SMALL. 20 rows worth of data is plenty.

  6. #6
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Silver Spring
    MS-Off Ver
    Excel 2016
    Posts
    212

    Re: can a index be placed in alphabetical order?

    This is hard to replicate unfortunately, bare with me.
    I created a new document with the same coding, same fields, etc. and it works.
    My original document has sensitive data but it setup the same and its failing, I'm trying to figure out why now.

  7. #7
    Forum Contributor
    Join Date
    05-17-2012
    Location
    Silver Spring
    MS-Off Ver
    Excel 2016
    Posts
    212

    Re: can a index be placed in alphabetical order?

    Disregard, I got it working. The range (OSList) was the issue in my case.

    My range (OSList) was A1:A2000, but my actual range with items in it was rows A1:A1230.

    Tony, when I took your code and put the actual range in (A1:A1230) it worked. If I did (A1:A2000) or (A1:A1231 or more) it failed.
    Excel just being picky.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: can a index be placed in alphabetical order?

    Did some testing and discovered the formula doesn't handle formula blanks "".

    I'm guessing that your range of data has formulas that return formula blanks at the bottom of the range.

    If that's correct then you should be able to use a dynamic range if you'll be adding new data in the future.

    Let me know.

+ 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. 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
  2. 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
  3. Replies: 0
    Last Post: 02-15-2014, 10:30 AM
  4. [SOLVED] INDEX names in alphabetical order. Horizontally.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2013, 11:43 AM
  5. Alphabetical order possible? or not
    By OSSIE in forum Excel General
    Replies: 5
    Last Post: 06-22-2006, 02:25 PM
  6. How do I put worksheets in alphabetical order
    By DLee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. Alphabetical Order
    By Jennifer_Taylor in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-27-2005, 10:49 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