+ Reply to Thread
Results 1 to 3 of 3

Need an Array Formula to Sort a 2-column Table

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2013
    Posts
    35

    Need an Array Formula to Sort a 2-column Table

    Dear All:

    I have this 2-Column Table I needed sorted (and be automatically) updated.

    I have done this before using 'Array Formulae' & the Excel function [SMALL] but just can't remember how I did it.

    The Range A1:A12 needs to be sorted in 'Descending Order' based on the values in Range B1:B12 and the result put into Range C1:D12

    Could someone please help.

    Thank you.

    Problem.JPG
    Thanks a lot...

    - pd -

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Need an Array Formula to Sort a 2-column Table

    D1=LARGE(B$1:B$9,ROWS(D$1:D1))
    C1=INDEX(A:A,SMALL(INDEX((B$1:B$9<>D1)*10^10+ROW(A$1:A$9),0),COUNTIF(D$1:D1,D1)))
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    11-26-2012
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2013
    Posts
    35

    Re: Need an Array Formula to Sort a 2-column Table

    Thank you very much for your instant help. Much appreciated.

    I have corrected a slight mistake in the formula you wrote. B$12 instead of B$9. (The columns have 12 cells each)

    Thanks once again Siva.

+ 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] Array formula to return table column values, alpha sorted
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-07-2017, 09:31 AM
  2. Adding Column to Table with Array Formula
    By eliasc in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-10-2016, 03:48 PM
  3. [SOLVED] Adding another column to existing table with array formula
    By eliasc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2016, 09:00 AM
  4. Array to Sort Table in another sheet
    By keysrock35 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2012, 02:42 PM
  5. [SOLVED] Need a formula to sort a table into table (for a Table Plan) and name in column 2
    By jbpianoman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2012, 09:21 AM
  6. Sort table based on array
    By Arne Hegefors in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2006, 08:05 AM

Tags for this Thread

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