+ Reply to Thread
Results 1 to 5 of 5

calculating a total score from several rows containing the same ID

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    2

    calculating a total score from several rows containing the same ID

    Hi - can anyone help me with a little problem?

    I have 2 x Columns. In Column A there is a list of IDs, which represent when a particular person has visited a given website. If someone clicks on multiple web pages, the same ID will appear multiple times in Col A.

    Each website receives a numerical score, so in Col B each ID will have an associated score alongside it.

    Let's imagine a guy clicks on 3 web pages, so he is represented by 3 x rows - with the same ID each time in Col A, but scores 5, 10, 15 alongside those IDs in Col B.

    There are thousands of rows, so I'm trying to get to a formula that I could use in Col C, that would identify each row sharing the same ID, then return the total score for that particular person/ID........so against each of the 3 rows for this example ID, I would expect to see the same total score returned - 5+10+15=30! See example below:

    A B C

    ID Score Total Score
    1234 5 30
    1234 10 30
    1234 15 30

    Hope this makes sense. I need to deliver the score into Column C.

    Thanks in advance

    Desmond

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: calculating a total score from several rows containing the same ID

    Have a look at the SUMIF funciton in Excel Help

    e.g

    =Sumif(A:A,A1,B:B) copied down sums all values in B where column A is equal to A1...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: calculating a total score from several rows containing the same ID

    Hi Desmond, welcome to the forum.

    While you could use formulas for this [e.g. =SUMIF(A:A,"1234",B:B)], it would be better to use a Pivot Table. See the attached workbook for an example.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    2

    Re: calculating a total score from several rows containing the same ID

    Awesome - that works. Thank you!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: calculating a total score from several rows containing the same ID

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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