+ Reply to Thread
Results 1 to 9 of 9

Looking up a sum of data in several columns for specific values of another column

Hybrid View

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Looking up a sum of data in several columns for specific values of another column

    I have the formula:

    =(SUMIF($J:$J, "Player1",$K:$K)+SUMIF($L:$L,"Player1",$M:$M)+SUMIF($N:$N,"Player1",$O:$O))-SUM($I:$I)

    This looks up if Player 1 was in the top 3 scoring zones and adds up the players total score.

    I have another column in this table of data labelled 'Number of Players'. I was wondering how to lookup the total score for this player in the games he played under 6 players for example and the games he played in where there were other six players.

    I've tried using that formula ^^ with variations of IF and SUMIF formulas to try and figure it out, but I keep getting formula errors or it just returns with the total score, and not just with the total score under 6 players.

    I am also trying to create a graph of date on the x axis against score to date on the y axis - everytime I try, the x axis is always numbers instead of the date? :S

    Any help?

    Cheers
    Matt
    Attached Files Attached Files
    Last edited by Mawhood; 01-28-2010 at 04:56 PM.

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

    Re: Looking up a sum of data in several columns for specific values of another column

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    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
    Registered User
    Join Date
    01-28-2010
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Looking up a sum of data in several columns for specific values of another column

    Attached the file

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

    Re: Looking up a sum of data in several columns for specific values of another column

    Nope, you didn't. When attaching the file, browse to it and then be sure to click the Upload button. The site will accept .xls or .zip formats (and possibly even .xlsx now too!).

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

    Re: Looking up a sum of data in several columns for specific values of another column

    Paul, it was attached in original post...

    Mawhood, not sure if this is what you mean:

    In C7
    =(SUMIFS($K:$K,$F:$F,"<6",$J:$J, "Player1")+SUMIFS($M:$M,$F:$F,"<6",$L:$L,"Player1")+SUMIFS($O:$O,$F:$F,"<6",$N:$N,"Player1"))

    and in C8

    =(SUMIFS($K:$K,$F:$F,">=6",$J:$J, "Player1")+SUMIFS($M:$M,$F:$F,">=6",$L:$L,"Player1")+SUMIFS($O:$O,$F:$F,">=6",$N:$N,"Player1"))

    not I include =6 in second formula.. you may need to adjust to top formula.

    Also note: You can easily make like more simple, if you say put Player 1 in Cell C2, then replace all references in the formula of "Player 1" to C2... then you just change C2 and formulas would auto recalc.

  6. #6
    Registered User
    Join Date
    01-28-2010
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Looking up a sum of data in several columns for specific values of another column

    Well then how come when I look at my first post, at the bottom it says:

    Attached Files
    File Type: xlsx player1profile.xlsx (49.6 KB, 1 views)

    ?

  7. #7
    Registered User
    Join Date
    01-28-2010
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Looking up a sum of data in several columns for specific values of another column

    That's brilliant thanks, any ideas on my graph problem (I edited the original post)?

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

    Re: Looking up a sum of data in several columns for specific values of another column

    I mentioned before.. please keep separate "unrelated" questions in separate threads... this will help future users find similar topic and be hopefully able to resolve their own issues when needed....and be specific about what you are trying to plot...

    Please mark this thread Solved.

  9. #9
    Registered User
    Join Date
    01-28-2010
    Location
    Bristol, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Looking up a sum of data in several columns for specific values of another column

    Oh ok, sorry - i've put it as solved now

+ 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