+ Reply to Thread
Results 1 to 7 of 7

Automatically Sort Ascending to Descending...

  1. #1
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Automatically Sort Ascending to Descending...

    hi all...

    how to make alphabetic series (sort asc -desc) with automatically update when added data..
    i don't want without use macro/vba

    please, check attachement file...

    any help is greatly appreciated..

    john m
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Automatically Sort Ascending to Descending...

    in G5

    =COUNTIF($E$5:$E$11,">"&E5)+1

    in H5

    =INDEX($E$5:$E$11,MATCH(LARGE($G$5:$G$11,ROWS($1:1)),$G$5:$G$11,0))


    copy both down

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Automatically Sort Ascending to Descending...

    Try this
    Enter in F5 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Automatically Sort Ascending to Descending...

    Create a named range "List" (to cope with additional text items):

    =Sheet1!$E$5:INDEX(Sheet1!$E$5:$E$1000,COUNTA(Sheet1!$E$5:$E$1000))

    Then use this array formula in F6, copoed down:

    =IFERROR(INDEX(List,MATCH(SMALL(COUNTIF(List,"<"&List),ROWS($F$4:F4)),COUNTIF(List,"<"&List),0)),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Automatically Sort Ascending to Descending...

    hi guys...

    you're both ...great!! worked it..

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,054

    Re: Automatically Sort Ascending to Descending...

    Having seen Alkey's formula, I'd use my Named range and this variant of his formula:

    =LOOKUP(1,0/FREQUENCY(ROWS(E$5:E5),COUNTIF(List,"<="&List)),List)&""

  7. #7
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Automatically Sort Ascending to Descending...

    Quote Originally Posted by Glenn Kennedy View Post
    Having seen Alkey's formula, I'd use my Named range and this variant of his formula:

    =LOOKUP(1,0/FREQUENCY(ROWS(E$5:E5),COUNTIF(List,"<="&List)),List)&""
    thank Glenn...worked too...

+ 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. VBA Code to sort in ascending AND descending order
    By infinitecables in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2017, 11:10 AM
  2. [SOLVED] sort an array wrt two columns one ascending and the other descending
    By mehmetics in forum Excel General
    Replies: 6
    Last Post: 10-25-2014, 07:49 AM
  3. [SOLVED] Fix Sub row label instead of using Sort by Ascending or Descending
    By so_nice3 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-18-2014, 02:21 AM
  4. [SOLVED] Reverting data sort from ascending to descending
    By two.n.twenty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 01:22 PM
  5. sort function - from ascending to descending
    By jimmyp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2006, 02:15 PM
  6. [SOLVED] Help on autofilter sort ascending and descending!
    By crapit in forum Excel General
    Replies: 2
    Last Post: 12-12-2005, 10:45 AM
  7. [SOLVED] Sort other than by alphabetical ascending/ descending
    By Melissa in forum Excel General
    Replies: 6
    Last Post: 09-02-2005, 03:05 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