+ Reply to Thread
Results 1 to 10 of 10

Finding the "best" (top) 20 values and assigning a name for each

  1. #1
    Registered User
    Join Date
    01-15-2016
    Location
    United States
    MS-Off Ver
    MS Office 2007
    Posts
    6

    Finding the "best" (top) 20 values and assigning a name for each

    Hi there,

    I'm not exactly new to Excel (2007), but I've just been introduced to the world of macros. I had no clue they could even be written until a few hours ago! I'm assuming I'll need one to complete the task I'm after, maybe, maybe not! We'll see!

    I have a workbook that has three sheets in it. In each sheet, column A contains a list of names on a roster. Columns B through M contain differing values that correspond to the person's name in that row. At the end, in column N, a calculation is performed on all of those values to get a total score for the person's name that's in that row.

    What I'd like to do is create a separate sheet that searches the three sheets in question for the highest 20 total scores it finds and list them in a descending order on the fourth sheet. However, when it lists them, I'm looking for it to list the score AND the name that the score is associated with.

    Sounds relatively complicated to me, but pretty important for what purpose the workbook holds! Thanks a lot in advance, the help is very much appreciated!

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Finding the "best" (top) 20 values and assigning a name for each

    I don't think you NEED a macro for that. Sounds like it could be done with formulas alone.
    Although to provide that solution we'll need to see a (desensitized if necessary) version of the workbook.
    Any chance you could attach one with mocked up expected results?

    BSB

  3. #3
    Registered User
    Join Date
    01-15-2016
    Location
    United States
    MS-Off Ver
    MS Office 2007
    Posts
    6

    Re: Finding the "best" (top) 20 values and assigning a name for each

    Surely, working on it now!

  4. #4
    Registered User
    Join Date
    01-15-2016
    Location
    United States
    MS-Off Ver
    MS Office 2007
    Posts
    6

    Re: Finding the "best" (top) 20 values and assigning a name for each

    Here it is! Thanks a lot in advance
    Attached Files Attached Files

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Finding the "best" (top) 20 values and assigning a name for each

    There are several approaches to this but the best will depend on your actual workbook.

    Would you always have 14 names per sheet or is that just for this example?

    BSB

  6. #6
    Registered User
    Join Date
    01-15-2016
    Location
    United States
    MS-Off Ver
    MS Office 2007
    Posts
    6

    Re: Finding the "best" (top) 20 values and assigning a name for each

    Just for the example, one sheet goes up to about 140, the other to about 50, and the last to about 20. I just hacked them down a bit for the example sheet.

  7. #7
    Registered User
    Join Date
    01-15-2016
    Location
    United States
    MS-Off Ver
    MS Office 2007
    Posts
    6

    Re: Finding the "best" (top) 20 values and assigning a name for each

    It's getting quite late for me here, so I'm going to crash for a little while and then revisit this in the (later) morning! Thanks a lot for all you've done already

  8. #8
    Registered User
    Join Date
    01-15-2016
    Location
    United States
    MS-Off Ver
    MS Office 2007
    Posts
    6

    Re: Finding the "best" (top) 20 values and assigning a name for each

    Just checking back to see if anyone had found any sort of solution! I tried playing with some pivot tables and some consolidate functions but it didn't really put out the result I was looking for (that or I did it wrong!). If anyone needs any more information just let me know!

    Thanks in advance

  9. #9
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Finding the "best" (top) 20 values and assigning a name for each

    Maybe :

    Please Login or Register  to view this content.

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Finding the "best" (top) 20 values and assigning a name for each

    Incl. tie management.
    Please Login or Register  to view this content.

+ 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: 8
    Last Post: 07-12-2017, 05:32 PM
  2. Assigning unique values to "yes" or "no"
    By herosol in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2014, 01:20 PM
  3. Replies: 12
    Last Post: 06-12-2014, 02:11 PM
  4. Replies: 0
    Last Post: 01-29-2014, 02:58 PM
  5. [SOLVED] Formula needed to display "Pass" or "Fail" if a column contains any values other than "yes
    By andreindy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2013, 05:49 PM
  6. Replies: 0
    Last Post: 01-09-2013, 06:52 PM
  7. Replies: 3
    Last Post: 02-16-2011, 02:55 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