+ Reply to Thread
Results 1 to 15 of 15

Find and list corresponding values in a column in descending order

  1. #1
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Find and list corresponding values in a column in descending order

    Hello,

    I have been trying for a while to get this to work with no success. I'd like to create a list of values and their percentages in a column in descending order. If any index values have the same percentage, order is not important.

    Thank you,Sans
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Find and list corresponding values in a column in descending order

    I've re-edited the attachment.Thanks
    Last edited by sans; 04-17-2012 at 09:47 AM.

  3. #3
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: Find and list corresponding values in a column in descending order

    To sort in order, copy the 2 rows and paste with the Transpose so they are in 2 columns then do a custom sort by the values column.

  4. #4
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Find and list corresponding values in a column in descending order

    Hi Barry, That approach is not very convenient as I have lots of data whic I need to process and this data also keeps changing. Thanks,Sans

  5. #5
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Find and list corresponding values in a column in descending order

    Hi

    Please click on attachment

    Good luck.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Find and list corresponding values in a column in descending order

    Hi micope21, That's what I was looking for. Many thanks! Sans

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Find and list corresponding values in a column in descending order

    solution approach updated in post #12 below.
    Last edited by icestationzbra; 04-17-2012 at 03:00 PM. Reason: simplified solution

  8. #8
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Find and list corresponding values in a column in descending order

    Thanks, icestationzbra. Yes, if the percentage of any two values is exactly the same, then there is a duplicate listing.

    i.e.

    C 5.3%
    C 5.3%

    instead of

    C 5.3%
    D 5.3%

    Maybe there is a faster workaround to this. Thank you,Sans

  9. #9
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Find and list corresponding values in a column in descending order

    i am unable to understand - did you want distinct values for duplicate percentages, or not?

    for example, in the sheet that i uploaded in my post (#7), N40 and N41 both have 0.2%, but M40 and M41 have Y and Z corresponding to them. did you want that to happen or did you just want Y repeated twice?

    if you just wanted Y repeated twice, @micope21's uploaded file does that already.

  10. #10
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Find and list corresponding values in a column in descending order

    No, you got it right. It should be Y 0.2% and Z 0.2%, as it is in your spreadsheet. I was just wondering if there is a simpler way of doing this without using helper columns, by modifying the formula in micopes attachment. I've tried a few ideas but haven't got it to work so far. Thanks, Sans

  11. #11
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Find and list corresponding values in a column in descending order

    sans, i simplified the solution further and updated the file in post #7, but i have not been able to completely avoid the use of helper column. if i figure something out, i will revert here.
    Last edited by icestationzbra; 04-17-2012 at 03:35 PM.

  12. #12
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Find and list corresponding values in a column in descending order

    sans, here you go - the solution 'sans' helper column...
    Attached Files Attached Files

  13. #13
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Find and list corresponding values in a column in descending order

    Cool thanks! I'll re-mark the thread as unsolved though, possibly someone has a different solution to share.

  14. #14
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Find and list corresponding values in a column in descending order

    Hi

    Sorry about duplicate. I didn't notice.
    Not much different between my and icestationzbra forumla. I might as well use his. Make it easy for you instead use Name Manager. On my file put this cell M18 =INDEX(M$2:AN$2,1,SMALL(IF($M$14:$AN$14=N18,COLUMN($M$14:$AN$14)-MIN(COLUMN($M$14:$AN$14))+1),COUNTIF($N$18:N18,N18))) confirmed with CONTROL+SHIFT+ENTER then copy down

    This will make you understand if you put in other file.
    Last edited by micope21; 04-17-2012 at 03:20 PM.

  15. #15
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Find and list corresponding values in a column in descending order

    Hey guys, now it works great. Thank you both very much for the replies and help! Sans

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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