+ Reply to Thread
Results 1 to 17 of 17

help with list of names and numbers

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    Ayr, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    20

    help with list of names and numbers

    Hi All, I'm back again

    I have a list of 100 names in column C and corresponding points in column E

    Some members in the list has many entries, example:- the member scored point many times.

    How can I sort the list into one list where the formula looks at the list, totals all there point and then show the members name with total points i.e.

    Mark McColl 120
    Mark Brown 80
    Jo Smith 160
    and so on

    Then it would be handy if it showed the top 20 names with total points

    Thanks in advanced

    Johnny

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: help with list of names and numbers

    Have you tried a Pivot Table ?

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    Ayr, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: help with list of names and numbers

    No Don't know how

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: help with list of names and numbers


  5. #5
    Registered User
    Join Date
    10-22-2013
    Location
    Ayr, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: help with list of names and numbers

    does a pivot table outo update if the data is changed?

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: help with list of names and numbers

    There is a refresh button on the ribbon when you have the cursor set in the PT. I believe that there is a setting in the options to auto refresh.

    http://office.microsoft.com/en-us/ex...102840043.aspx
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  7. #7
    Registered User
    Join Date
    10-22-2013
    Location
    Ayr, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: help with list of names and numbers

    OK thanks for your help, but I need it to auto update, I wont be the person using this workbook

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,864

    Re: help with list of names and numbers

    Did you look at the link -- it shows auto update.

    If that doesn't work for you, then you will need to use the Worksheet_Change Event in VBA
    Last edited by alansidman; 10-26-2013 at 10:57 AM.

  9. #9
    Registered User
    Join Date
    10-22-2013
    Location
    Ayr, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: help with list of names and numbers

    Thanks again for your help, but you need to close and reopen the pivot table for it to refresh

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: help with list of names and numbers

    When you say "update", does that mean you'll be adding new data to the lists as time goes by?

    We can use formulas to extract the unique names into a new list and get their totals.

    Then, we can use the technique described here to get the top 20 list:

    http://www.excelforum.com/excel-form...ml#post3452103

    Want to try this method?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  11. #11
    Registered User
    Join Date
    10-22-2013
    Location
    Ayr, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: help with list of names and numbers

    Hi Tony

    Yes the data will come in monthly and I will get the list of the top 20 winners and there points
    these are put into 5 separate sheets Comp1, Comp2 and so on
    I have got another sheet that copies the data into a list of 100 (5x20) names and points automatically
    The problem is, any member can enter up to 3 images per month so they will show up on the list up to 3 times, times that by 5 months
    I need to sort the members names and total the points and then show me the top 20 which will then show in the league table
    The pivot table does this exactly as I want but does not auto update
    I been thinking about INDEX/RANK but am struggling with the formula

    Thanks in advance for any help you can give

    Johnny

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: help with list of names and numbers

    Quote Originally Posted by mrjboyle View Post
    Hi Tony

    Yes the data will come in monthly and I will get the list of the top 20 winners and there points
    these are put into 5 separate sheets Comp1, Comp2 and so on
    I have got another sheet that copies the data into a list of 100 (5x20) names and points automatically
    Hmmm...

    Is that name list made up of 5 columns by 20 rows?

    Where are the points entered? Is it something like this:



    Data Range
    A
    B
    C
    D
    E
    F
    2
    Name1
    44
    Name3
    86
    Name6
    83
    3
    Name2
    9
    Name2
    88
    Name4
    24
    4
    Name3
    80
    Name7
    14
    Name7
    20
    5
    Name4
    31
    Name6
    7
    Name3
    91
    6
    Name5
    61
    Name9
    15
    Name7
    30
    7
    Name6
    66
    Name8
    2
    Name5
    99


    If so, that makes it a lot more complicated to do using formulas. It can still be done but the resultant formulas would be very long and super complicated.

    You may be better off using a pivot table. Maybe you can add a button to the sheet and get someone to write you a macro to refresh the PT then you'd attach that macro to the button.

    Whenever you want to refresh the PT you simply click the button.

    I'm not a programmer so I can't help you with any of that!

  13. #13
    Registered User
    Join Date
    10-22-2013
    Location
    Ayr, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: help with list of names and numbers

    No I have works it so that Column C is populated with the names and column E their points
    from cell 4 to 104

    Cheers

    Johnny

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: help with list of names and numbers

    The forum won't allow me to create a table to display the sample data. Says it's got too many characters! So, I'll have to post a sample file.

    Ok, here's a smaller version of what you want to do.

    mrjboyle.xlsx

    Extract the unique names and sort them in ascending order...

    Enter this array formula** in G4:

    =IFERROR(INDEX(C$4:C$20,MATCH(0,COUNTIF(C$4:C$20,"<"&C$4:C$20)-SUM(COUNTIF(C$4:C$20,"="&G$3:G3)),0)),"")

    Enter this formula in H4:

    =IF(G4="","",SUMIF(C$4:C$20,G4,E$4:E$20))

    Select G4:H4 and copy down to G20:H20

    Enter the top N number in J4. I created a top 5 list in the sample file, in your case the top N number would be 20.

    Enter this formula in K4. This will return the count of records that fall within the top N.

    =COUNTIF(H4:H20,">="&LARGE(H4:H20,J4))

    Enter this array formula** in L4:

    =IF(ROWS(L$4:L4)>K$4,"",INDEX(G:G,SMALL(IF(H$4:H$20=M4,ROW(H$4:H$20)),COUNTIF(M$4:M4,M4))))

    Enter this formula in M4:

    =IF(ROWS(M$4:M4)>K$4,"",LARGE(H$4:H$20,ROWS(M$4:M4)))

    Select L4:M4 and copy down to L20:M20.

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Last edited by Tony Valko; 10-26-2013 at 04:43 PM.

  15. #15
    Registered User
    Join Date
    10-22-2013
    Location
    Ayr, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: help with list of names and numbers

    Just finished implementing this into my sheet, changing numbers to match and it work a treat
    You are a genius

    Many thanks

    Johnny

  16. #16
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: help with list of names and numbers

    You're welcome. Thanks for the feedback!

  17. #17
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: help with list of names and numbers

    Quote Originally Posted by mrjboyle View Post
    You are a genius
    Spread the word!

+ 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. replacing phone numbers with names from a list and separating conversations
    By Rick Lauzon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-16-2013, 03:09 PM
  2. [SOLVED] Creating a sum of numbers based on a list of names
    By empireants in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-27-2013, 01:07 PM
  3. Replies: 2
    Last Post: 07-13-2011, 06:40 AM
  4. list of names using numbers
    By GERARD.SMITH in forum Excel General
    Replies: 1
    Last Post: 03-24-2010, 05:21 PM
  5. 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

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