+ Reply to Thread
Results 1 to 2 of 2

Sorting names by other colm of numbers

  1. #1
    Registered User
    Join Date
    08-03-2014
    Location
    Israel
    MS-Off Ver
    2013
    Posts
    1

    Sorting names by other colm of numbers

    Hello everyone,
    ive qestion in sorting: ive 2 colm in one datasheet. one contain value of numbers and the other contain names of employes. i want to sort the name of the emplyes by the values that is on the first colm. anther question is how to make it dynemcly so ill not sorting it everytime that the values of the first colm is changing. thanks in advence.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Sorting names by other colm of numbers

    Hi and welcome to the forum

    Sounds like you need to use a combination of INDEX/MATCh and LARGE. You did not provide a sample, so assuming your data looks something like this...

    A
    B
    C
    D
    1
    aa
    3
    ee
    2
    bb
    5
    dd
    3
    cc
    1
    bb
    4
    dd
    8
    ff
    5
    ee
    9
    aa
    6
    ff
    4
    cc


    D1=INDEX($A$1:$A$6,MATCH(LARGE($B$1:$B$6,ROW(A1)),$B$1:$B$6,0))
    copied down.

    What this is doing is...
    1. finding the nth largest value
    LARGE($B$1:$B$6,ROW(A1)) using ROW(A1) makes the "count" for the formula increase as it gets copied down

    2. finding the row that the value is in...
    MATCH(LARGE($B$1:$B$6,ROW(A1)),$B$1:$B$6,0)

    Finally, INDEX gives the correstonding value from the row that was found
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 2
    Last Post: 06-15-2011, 07:21 PM
  2. auto sorting a list of names and numbers automatically
    By Potsdamerplatz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2010, 01:02 PM
  3. Sorting names and numbers in order with the highest total
    By Red Shoes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2006, 04:30 AM
  4. Replies: 2
    Last Post: 08-17-2005, 04:05 PM
  5. Replies: 3
    Last Post: 05-11-2005, 04:06 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