+ Reply to Thread
Results 1 to 6 of 6

Unique List from table

  1. #1
    Registered User
    Join Date
    12-04-2006
    Posts
    3

    Red face Unique List from table

    Hi,
    I apologise if this has been asked in the past but I have searched through quite a number of posts and cannot find my answer.

    I think if I explain what my data is it might be easier to understand. Each row on my spreadsheet is a football game and I have a number of columns to show the goal scorers, so you could have the name repeated across the columns if they score more than one goal.

    What I want to do is look at the cell range covering all the goal scorers (for the whole season) and bring back a list of names with the corresponding number of goals they have scored in the adjacent cell. It is the unique list I am struggling with not the number of goals.

    Any help would be much appreciated.

    Thank you in advance.

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by snoops
    Hi,
    I apologise if this has been asked in the past but I have searched through quite a number of posts and cannot find my answer.

    I think if I explain what my data is it might be easier to understand. Each row on my spreadsheet is a football game and I have a number of columns to show the goal scorers, so you could have the name repeated across the columns if they score more than one goal.

    What I want to do is look at the cell range covering all the goal scorers (for the whole season) and bring back a list of names with the corresponding number of goals they have scored in the adjacent cell. It is the unique list I am struggling with not the number of goals.

    Any help would be much appreciated.

    Thank you in advance.
    ASSUME that

    1. your players names are in A1:A100 and
    2. corresponding goals are in B1:B100

    If you want to determine the total goals scored by "Player A", here is your
    formula:

    =sumproduct(--(A1:A100="Player A"),--(B1:B100))


    Similarly, if you want to determine the goals scored by "Player B", simply
    enter "Player B" in the above formula instead of "Player A"

    Another option would be to enter the name of the player in, e.g, Cell C1. In
    this option, your formula would be

    =sumproduct(--(A1:A100=C1),--(B1:B100))

    I hope this is what you are looking for.

    Regards.
    BenjieLop
    Houston, TX

  3. #3
    Registered User
    Join Date
    12-04-2006
    Posts
    3
    Hi, many thanks for your reply but it is not quite what I am looking for.

    Each line represents a match and for now I have reserved 6 adjacent cells on each row for each teams goal scorers, so my cell range for each match is columns F:Q, in column R I want to bring back all goal scorers for the season with the total number of goals scored per season in the adjacent cell S. So my cell range will be F2:Q46 (but I have named the cell range goal_scorers). The data in column R will not be representative of what is in that row but it will be a unique list of goal scorers for the season.

    Thank you, once again.

  4. #4
    Registered User
    Join Date
    12-04-2006
    Posts
    3

    Have I asked the impossible?

    Do I take it from the lack of replies that what I am trying to do cannot be done??

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    For Unique Items, take a look at Data Filter AdvancedFilter
    Unique Records Only ...


    HTH
    Carim

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can you post an example

    Think you could use advancefilter


    http://www.contextures.com/xladvfilter01.html#FilterUR

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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