+ Reply to Thread
Results 1 to 21 of 21

Using sumif to show win loss when 1 team plays 4 others

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Using sumif to show win loss when 1 team plays 4 others

    Earlier today I submitted a problem where I had to show win loss results where 1 team played another in a fixture list. That was solved brilliantly using sumif. Now 1 team has to play 4 others and I need to show the results in a win and loss cell. I hope that it can be solved in a simular way as the previous problem.
    Attached Files Attached Files
    Last edited by Laurence1965; 09-22-2011 at 02:10 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: Using sumif to show win loss when 1 team plays 4 others

    Try these:

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    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
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using sumif to show win loss when 1 team plays 4 others

    Brilliant, thanks again for your help.

  4. #4
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Using sumifs to show win loss when 1 team plays 2 others which aren't adjacent

    One team has to play two others and I need to show the results in a win and loss cell. The cells of the two opponents are not located next to each other so yesterdays solution doesn't appear to work.
    Attached Files Attached Files

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Using sumif to show win loss when 1 team plays 4 others

    Hello Laurence1965

    This is effectively a follow-up to your original query so I've merged these threads - this makes it easier to see what has been suggested so far - thanks

    With regard to the question I'm not sure what you mean by "Jacksonville only need to play Atlanta & Carolina". The listed games show Jacksonville playing all four teams - if they only played Atlanta and Carolina you'd only get results for those 2....or if you only listed those 2 in table 4 then you'd only get results for those 2 - for the setup you have what determines that you only want results for Jacksonville playing those teams?
    Audere est facere

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

    Re: Using sumif to show win loss when 1 team plays 4 others

    I am not sure I understand.. you still listed all 4 teams they play... so how do you know that you only want Carolina and Atlanta.

    If you remove New Orleans and Tampa from table 3, you get the results you show in Table 4

    is that what you are needing? If not, please elaborate.

  7. #7
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using sumif to show win loss when 1 team plays 4 others

    Sorry for the confusion.

    In my example I've only listed 4 teams but actually there are 32 arranged in a specific order (rather like the football league with premier division, conference division, division 1, division 2 etc).

    Yesterday I needed the results when Jacksonville (for example) played a complete division which were naturally grouped together so the lookup array covered the group eg $b$37:$b$40 . Today they need to play 2 other teams that are located in different divisions whose cells are not next to each other in the list.

    If they only needed to play teams in cells b37and b40 the formula that I used yesterday doesn't work.

    I hope that I've made things a bit clearer.

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

    Re: Using sumif to show win loss when 1 team plays 4 others

    Can you show a more representative example of what you mean.. especially by:

    Yesterday I needed the results when Jacksonville (for example) played a complete division which were naturally grouped together so the lookup array covered the group eg $b$37:$b$40 . Today they need to play 2 other teams that are located in different divisions whose cells are not next to each other in the list.

  9. #9
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using sumif to show win loss when 1 team plays 4 others

    I will try and explain what I want from the code. The "win" code from yesterday is below

    Please Login or Register  to view this content.
    Everything else can stay the same but instead of the lookup array $B$37:$B$40 which covers 4 cells I need to pick out only 2 other cells. Lets say for example I just want the win results from $B$37 and $B$40 leaving out the 2 cells in between how would the code have to be altered. I've tried taking out the colon and just putting in a comma (as below) but that doesn't work.

    Please Login or Register  to view this content.
    Is that any clearer?
    Last edited by NBVC; 09-22-2011 at 10:42 AM.

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

    Re: Using sumif to show win loss when 1 team plays 4 others

    Maybe, you can add "x" in A37:A40 for the teams you want to count in...

    and then change formulas in C42 and D42 to:

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    each of these formulas need to be confirmed with CTRL+SHIFT+ENTER not just ENTER to work.

    Now you just put an "x" beside the team(s) in B37:B40 that you want to count in the wins/losses.

    Will that work for you?

  11. #11
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using sumif to show win loss when 1 team plays 4 others

    Hi, that's not going to work. To do what I wanted I would need 2 side boxes with x's in.

    I think that you get what I'm trying to do. Is there a way that I can upload the full worksheet without starting a new thread?

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

    Re: Using sumif to show win loss when 1 team plays 4 others

    Hit Reply and click the paperclip icon.

    If it is too large, then you can zip it first.

  13. #13
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using sumif to show win loss when 1 team plays 4 others

    In cells AZ3 & BA3 I want to show the results of games with Pittsburgh and Indianapolis.

    The reason that the previous answer wouldn't work is that another team will have to play Pittsburgh and Indianapolis as well.
    Attached Files Attached Files

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

    Re: Using sumif to show win loss when 1 team plays 4 others

    So in Column AZ and BA, for all teams in column B you want to see the wins/losses against those specific 2 teams (Pittsburgh and Indianapolis) only?

  15. #15
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using sumif to show win loss when 1 team plays 4 others

    No, not those specific teams. Each team in column B will play 2 matches which need to be set in AZ or BA but only New England and Kansas will play Pittsburgh and Indianapolis. NY Jets will play another 2 teams and so on

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

    Re: Using sumif to show win loss when 1 team plays 4 others

    Maybe I am just dense or missing some clue... but how do you know which two teams for each team in column B? Or does it matter the teams? If not, then what am I obviously missing here? How does one know which to count?

  17. #17
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using sumif to show win loss when 1 team plays 4 others

    No, you are not being dense. Fixtures for AZ & BA are based on what positions finished in their division in the previous season. So

    New England will play Pittsburgh & Indianapolis
    NY Jets will play Baltimore & Jacksonville
    Buffalo will play Cincinatti & Tennessee
    Miami will play Cleveland & Houston
    Baltimore will play NY Jets & San Diego
    Cincinatti will play Buffalo & Denver
    Pittsburgh will play New England & Kansas
    Cleveland will play Miami & Oakland
    Houston will play Miami & Oakland
    Jacksonville will play NY Jets & San Diego
    Tennessee will play Buffalo & Denver
    Indianapolis will play New England & Kansas
    Oakland will play Miami & Houston
    San Diego will play NY Jets & Jacksonville
    Denver will play Buffalo & Tennessee
    Kansas will play Pittsburgh & Indianapolis
    Washington will play Minnesota & Carolina
    Philadelphia will play Chicago & Atlanta
    Dallas will play Detroit & Tampa Bay
    NY Giants will play Green Bay & New Orleans
    Green Bay will play NY Giants & St Louis
    Detroit will play Dallas & San Francisco
    Chicago will play Philadelphia & Seattle
    Minnesota will play Washington & Arizona
    Atlanta will play Philadelphia & Seattle
    New Orleans will play NY Giants & St Louis
    Tampa Bay will play Dallas & San Francisco
    Carolina will play Washington & Arizona
    San Francisco will play Detroit & Tampa Bay
    Arizona will play Minnesota & Carolina
    St Louis will play Green Bay & New Orleans
    Seattle will play Chicago & Atlanta

    Sorry, I should have included the above before

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

    Re: Using sumif to show win loss when 1 team plays 4 others

    Somehow we need to extract the 2 teams for each... will you enter these manually in each row, and then we can use those or do we need to know the exact logic so we can try a formula to extract them. I am not a football fan, so I don't know how it all works. You will have to explicitly outline the rules.

  19. #19
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using sumif to show win loss when 1 team plays 4 others

    Why don't I create 2 more columns BB & BC. In that way these 2 matches will have a win loss column of their own. I could link it up as I've done with columns AH AI AK AL AN & AO. What do you think?

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

    Re: Using sumif to show win loss when 1 team plays 4 others

    Will BB and BC have the 2 teams in them? If so, then yeah, that's what we need.

  21. #21
    Registered User
    Join Date
    09-20-2011
    Location
    Maidstone, England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Using sumif to show win loss when 1 team plays 4 others

    I can put one teams win loss in AZ & BA and the others in BB & BC. At this point it seems like the easiest thing to do especially as these fixtures will change every season.

    Great, I will do that. Thank you very much for your help today.

+ 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