+ Reply to Thread
Results 1 to 6 of 6

Formula to get unique and alphabetically sorted list after matching a criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    11-28-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    5

    Exclamation Formula to get unique and alphabetically sorted list after matching a criteria

    Hi All,

    Please help me to correct this formula,

    I just want to get unique and alphabetically sorted list after matching a criteria,

    for Eex:

    Campus Immediate Supervisor as per Workday
    Campus2 Sheerish Madipadaga
    Campus2 Ramesh Bandaru
    Campus5 Kalyan Gorti
    Campus2 Balachandar Manoharan
    Campus5 Prashant Kamal
    Campus2 Sridhar G
    Campus2 Nisha Shine
    Campus2 Nikunj Goel

    The result will be like,

    Campus2

    Balachandar Manoharan
    Nikunj Goel
    Nisha Shine
    Ramesh Bandaru
    Sheerish Madipadaga
    Sridhar G

    Formula:
    in "C2"
    {=INDEX($B$2:$B$9,MATCH(0,COUNTIF($B$2:$B$9,"<"&$B$2:$B$9)-SUM(COUNTIF($B$2:$B$9,C$1:C1))+IF(Data!$A$2:$A$9<>"Campus2",1,0),0))}

    Campus 5

    Kalyan Gorti
    Prashant Kamal

    Formula:
    in "D2"
    {=INDEX($B$2:$B$9,MATCH(0,COUNTIF($B$2:$B$9,"<"&$B$2:$B$9)-SUM(COUNTIF($B$2:$B$9,D$1:D1))+IF(Data!$A$2:$A$9<>"Campus5",1,0),0))}


    Thanks & Regards,
    Saranya

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Formula to get unique and alphabetically sorted list after matching a criteria

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Click just below left if it helps, Boo?ath?

  3. #3
    Registered User
    Join Date
    11-28-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formula to get unique and alphabetically sorted list after matching a criteria

    Hi Boopathiraja,

    I didnt know about the options that will allow us to upload excel files. So, I just typed in the blog itself. I ll use the features in future.

    Thank u for the details u have provided.

    Thanks & Regards,
    Saranya

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

    Re: Formula to get unique and alphabetically sorted list after matching a criteria

    Try this...

    Data Range
    A
    B
    C
    D
    E
    1
    ------
    Campus2
    Campus5
    2
    Campus2
    Sheerish Madipadaga
    Balachandar Manoharan
    Kalyan Gorti
    3
    Campus2
    Ramesh Bandaru
    Nikunj Goel
    Prashant Kamal
    4
    Campus5
    Kalyan Gorti
    Nisha Shine
    5
    Campus2
    Balachandar Manoharan
    Ramesh Bandaru
    6
    Campus5
    Prashant Kamal
    Sheerish Madipadaga
    7
    Campus2
    Sridhar G
    Sridhar G
    8
    Campus2
    Nisha Shine
    9
    Campus2
    Nikunj Goel


    This array formula** entered in D2:

    =IFERROR(INDEX($B$2:$B$9,MATCH(SMALL(IF(FREQUENCY(IF($A$2:$A$9=D$1,MATCH($B$2:$B$9,$B$2:$B$9,0)),ROW(B$2:B$9)-ROW(B$2)+1),COUNTIF($B$2:$B$9,"<"&$B$2:$B$9)),ROWS(D$2:D2)),COUNTIF($B$2:$B$9,"<"&$B$2:$B$9),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 across to E2 then down until you get a row full of blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    11-28-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formula to get unique and alphabetically sorted list after matching a criteria

    Hi Tony Valko,

    Thank u for the speedy answer.

    It helps me greatly.

    Thanks,
    Saranya

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

    Re: Formula to get unique and alphabetically sorted list after matching a criteria

    You're welcome. 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. [SOLVED] How to deal with blank cells to get unique distinct alphabetically sorted list?
    By keyantkarthi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-28-2015, 09:13 AM
  2. [SOLVED] Dynamic Formula for Getting Unique Items from a list and sort them alphabetically
    By tuckertheguy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-18-2015, 03:57 AM
  3. [SOLVED] A list using 3 columns sorted alphabetically using functions
    By fjyoder in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2015, 12:01 PM
  4. [SOLVED] Summerize unique values from multiple columns / Sorted alphabetically
    By Lacaycer in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-01-2014, 02:40 PM
  5. [SOLVED] Unique distinct alphabetically sorted list
    By atlant15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2013, 10:03 AM
  6. [SOLVED] Adding letter headings to an alphabetically sorted list
    By hoodric in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2012, 01:18 PM
  7. An alphabetically sorted list of findings...
    By JemyM in forum Excel General
    Replies: 4
    Last Post: 09-19-2005, 01:50 PM

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