+ Reply to Thread
Results 1 to 7 of 7

sort an array wrt two columns one ascending and the other descending

  1. #1
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    sort an array wrt two columns one ascending and the other descending

    I am trying to sort and filter function using a formula for multiple columns, using the numeric values in descending order. See example attached.

    (Column A) contains a range of text values.
    (Column B) contains a range of unsorted numbers.
    (Column C) contains a range of unsorted numbers.


    Now I would like to find a way of having the text values correspond with the sorted numerical data ( points-1 in descending and points-2 in ascending order) using an array formula. Can anyone help?
    Attached Files Attached Files
    Last edited by mehmetics; 10-25-2014 at 04:36 AM.

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: sort an array wrt two columns one ascending and the other descending

    Hi,

    please see the attached file: there are for sure better solutions.

    Not sure formulas in E column are robust
    Please Login or Register  to view this content.
    in F column
    Please Login or Register  to view this content.
    in G column (you can use AGGREGATE only with Excel 2010-2013...)

    Please Login or Register  to view this content.
    Regards
    Attached Files Attached Files
    Last edited by canapone; 10-25-2014 at 05:02 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: sort an array wrt two columns one ascending and the other descending

    Hi mehmetics,
    Welcome to the Forum.

    You can achieve this by using custom sort. To do this follow these step...

    Select a cell in the range --> Sort & Filter --> Custom Sort --> First Sort By drop down, select Points 1 --> Sort On (Values) --> Order (Largest to smallest) --> Now Add Level --> Select Points 2 from then by drop down list for new level --> Sort On (Values) --> Order (Smallest to Largest) --> OK.

    Does this help.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: sort an array wrt two columns one ascending and the other descending

    Hi again (playing on with formulas)

    in E2 much better to use


    Please Login or Register  to view this content.
    Regards

  5. #5
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    Re: sort an array wrt two columns one ascending and the other descending

    Thank you canapone that is what I want.

  6. #6
    Forum Contributor
    Join Date
    10-25-2013
    Location
    türkiye
    MS-Off Ver
    Excel 2021
    Posts
    130

    Re: sort an array wrt two columns one ascending and the other descending

    thank you sktneer.
    as you said, I can achieve it by using costom sort. But in order to have a dynamic change I wanted to do using an array formula.

  7. #7
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: sort an array wrt two columns one ascending and the other descending

    Hi,

    thanks mehmetics for providing feedback.

    Iyi günler

+ 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] 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
  2. Can you sort a chart out in Ascending/Descending Order
    By dandavis1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-26-2010, 09:52 AM
  3. sort function - from ascending to descending
    By jimmyp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2006, 02:15 PM
  4. Help on autofilter sort ascending and descending!
    By crapit in forum Excel General
    Replies: 2
    Last Post: 12-12-2005, 10:45 AM
  5. 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