+ Reply to Thread
Results 1 to 3 of 3

INDEX names in alphabetical order. Horizontally.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    INDEX names in alphabetical order. Horizontally.

    I had gotten this answer done before using numbers but now need to change it to text. Please see my prevously solved post for the numbered issue:

    http://www.excelforum.com/excel-form...ue-values.html
    =IFERROR(INDEX('Data-EmployeeStatus'!$A2:$A10000,SMALL(IF('Data-EmployeeStatus'!$E2:$E10000="Active",IF('Data-EmployeeStatus'!$C2:$C10000='Department Summary'!$A3,ROW('Data-EmployeeStatus'!$C2:$C10000)-MIN(ROW('Data-EmployeeStatus'!$C2:$C10000))+1)),COLUMNS($A:A))),"")
    Now instead of this formula I will need to replace the EmployeeID number sheet with the EmployeeName in alphabetical order.

    Please see example in "Department Summary". I did the two different groups by hand but i'm looking to pull from the "Data-EmployeeStatus" sheet all the information horizontally; with the critia that it only be active people and to display just their unique name in alphabetical order.

    Thanks in advance for all your help!
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: INDEX names in alphabetical order. Horizontally.

    hi there. 1 way:
    Formula: copy to clipboard
    =INDEX('Data-EmployeeStatus'!$B$2:$B$20,MATCH(SMALL(IF(('Data-EmployeeStatus'!$B$2:$B$20="")+('Data-EmployeeStatus'!$C$2:$C$20<>$A2)+('Data-EmployeeStatus'!$E$2:$E$20<>"Active")>0,"",COUNTIF('Data-EmployeeStatus'!$B$2:$B$20,"<"&'Data-EmployeeStatus'!$B$2:$B$20)+1),COLUMNS($B2:B2)),IF(('Data-EmployeeStatus'!$B$2:$B$20="")+('Data-EmployeeStatus'!$C$2:$C$20<>$A2)+('Data-EmployeeStatus'!$E$2:$E$20<>"Active")>0,"",COUNTIF('Data-EmployeeStatus'!$B$2:$B$20,"<"&'Data-EmployeeStatus'!$B$2:$B$20)+1),0))


    array formula still

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    10-15-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: INDEX names in alphabetical order. Horizontally.

    Hi benishiryo,

    Works perfectly!

    Added an IFERROR to it to remove the #num when no values were found.
    =IFERROR(INDEX('Data-EmployeeStatus'!$B$2:$B$20,MATCH(SMALL(IF(('Data-EmployeeStatus'!$B$2:$B$20="")+('Data-EmployeeStatus'!$C$2:$C$20<>$A2)+('Data-EmployeeStatus'!$E$2:$E$20<>"Active")>0,"",COUNTIF('Data-EmployeeStatus'!$B$2:$B$20,"<"&'Data-EmployeeStatus'!$B$2:$B$20)+1),COLUMNS($B2:B2)),IF(('Data-EmployeeStatus'!$B$2:$B$20="")+('Data-EmployeeStatus'!$C$2:$C$20<>$A2)+('Data-EmployeeStatus'!$E$2:$E$20<>"Active")>0,"",COUNTIF('Data-EmployeeStatus'!$B$2:$B$20,"<"&'Data-EmployeeStatus'!$B$2:$B$20)+1),0)),"")
    Thanks much!

+ 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. Scrambling Alphabetical order
    By Kukainis in forum Excel General
    Replies: 6
    Last Post: 11-22-2011, 11:32 AM
  2. Alphabetical order of files
    By LD in forum Excel General
    Replies: 1
    Last Post: 06-23-2006, 05:25 AM
  3. Alphabetical order possible? or not
    By OSSIE in forum Excel General
    Replies: 5
    Last Post: 06-22-2006, 02:25 PM
  4. sort last names by in alphabetical order
    By Jackie in forum Excel General
    Replies: 1
    Last Post: 05-24-2006, 03:50 PM
  5. 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