new member..need help calculating # of Wins/Losses

scottwisler

New Member
Joined
Jan 7, 2014
Messages
19
Hello all! thanks in advance for any assistance! I am using Excel 2003 and trying to calculate the number of wins based on a set schedule of 5 game matches as follows: (MATCH - UPS is in A11, etc) I previously only had 3 games and nested if/than,s but since I am in 2003 and now have 2 more games in each matchup, the formula is too long.
MATCH - UPS Game 1Game 2Game 3Game 4Game 5
1 vs 31 3 21 20 21 20 21 20 21 20 21 20
6 vs 86 8 21 20 21 20 21 20 21 20 21 20
5 vs 75 7 21 20 21 20 21 20 21 20 21 20
2 vs 42 4 21 20 21 20 21 20 21 20 21 20
6 vs 76 7 21 20 21 20 21 20 21 20 21 20
5 vs 85 8 21 20 21 20 21 20 21 20 21 20
2 vs 32 3 21 20 21 20 21 20 21 20 21 20
1 vs 41 4 21 20 21 20 21 20 21 20 21 20
1 vs 51 5 21 20 21 20 21 20 21 20 21 20
2 vs 62 6 21 20 21 20 21 20 21 20 21 20
4 vs 84 8 21 20 21 20 21 20 21 20 21 20
3 vs 73 7 21 20 21 20 21 20 21 20 21 20
2 vs 52 5 21 20 21 20 21 20 21 20 21 20
3 vs 83 8 21 20 21 20 21 20 21 20 21 20
1 vs 61 6 21 20 21 20 21 20 21 20 21 20
4 vs 74 7 21 20 21 20 21 20 21 20 21 20
4 vs 64 6 21 20 21 20 21 20 21 20 21 20
1 vs 71 7 21 20 21 20 21 20 21 20 21 20
2 vs 82 8 21 20 21 20 21 20 21 20 21 20
3 vs 53 5 21 20 21 20 21 20 21 20 21 20
2 vs 72 7 21 20 21 20 21 20 21 20 21 20
4 vs 54 5 21 20 21 20 21 20 21 20 21 20
1 vs 81 8 21 20 21 20 21 20 21 20 21 20
3 vs 63 6 21 20 21 20 21 20 21 20 21 20
3 vs 43 4 21 20 21 20 21 20 21 20 21 20
1 vs 21 2 21 20 21 20 21 20 21 20 21 20
5 vs 65 6 21 20 21 20 21 20 21 20 21 20
7 vs 87 8 21 20 21 20 21 20 21 20 21 20

<colgroup><col width="219" style="width: 164pt; mso-width-source: userset; mso-width-alt: 8009;"> <col width="27" style="width: 20pt; mso-width-source: userset; mso-width-alt: 987;" span="2"> <col width="47" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1718;" span="5"> <col width="54" style="width: 41pt; mso-width-source: userset; mso-width-alt: 1974;"> <col width="47" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1718;" span="4"> <tbody>
</tbody>
 
It's doing bascially the same thing your original formula is. It checks for Team 1 in both columns, then counts how many "wins" in the columns housing the scores. You'll have to extend the last part of the formula to count the three remaining games.

It's OR'ing so you don't have to use SUMPRODUCT everytime you use the +
 
Last edited:
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
but will it catch it if the team is in the 2nd column? for instance, team 8 never appears in the 1st column, so the win calculation would be reversed if it is in the 2nd column
 
Upvote 0
i'm getting #N/A: =SUMPRODUCT(--(B12:B45=C13)+(C1:C45=C13),--(D12:D45>E12:E45)+(F12:F45>G12:G45)+(H12:H45>I12:I45)+(J12:J45>K12:K45)+(L12:L45>M12:M45)) where B is the 1st team listed in the matchup's column, C is the 2nd team listed in the matchup...then the scores, for / against are in d/e, f/g, h/I, j/k, l/m respectively
 
Upvote 0
Thanks again, btw...I am so frustrated with this at this point :) OH, and cell c13 is simply calculating wins for team 8, which in the sched above is listed in cell C13
 
Last edited:
Upvote 0
OK I fixed the error (C1:C45 shb C12:C45...oops!) but it is not calculating correctly...I am now getting 35, which should be 0. it is only calculating correctly if the team being calculated is listed first...exactly the same way as my original.
 
Upvote 0
i'm getting #N/A: =SUMPRODUCT(--(B12:B45=C13)+(C1:C45=C13),--(D12:D45>E12:E45)+(F12:F45>G12:G45)+(H12:H45>I12:I45)+(J12:J45>K12:K45)+(L12:L45>M12:M45)) where B is the 1st team listed in the matchup's column, C is the 2nd team listed in the matchup...then the scores, for / against are in d/e, f/g, h/I, j/k, l/m respectively

Change the range C1:C45 to C12:C45
 
Upvote 0
i'm getting #N/A: =SUMPRODUCT(--(B12:B45=C13)+(C1:C45=C13),--(D12:D45>E12:E45)+(F12:F45>G12:G45)+(H12:H45>I12:I45)+(J12:J45>K12:K45)+(L12:L45>M12:M45)) where B is the 1st team listed in the matchup's column, C is the 2nd team listed in the matchup...then the scores, for / against are in d/e, f/g, h/I, j/k, l/m respectively

OK I see my error, you have 1 vs 2 in one cell. If that's the case, try

=SUMPRODUCT(--(LEFT(D1:D100,1)="1")+(RIGHT(D1:D100,1)="1"),--(G1:G100>H1:H100)+(I1:I100>J1:J100))

Adjust the ranges and criteria

The LEFT and RIGHT function returns a text value, so be careful when you do the summary sheet
 
Upvote 0
I actually added 2 columns in which I just did "1 " and "2 " with spaces after to avoid cluttering the formulas with the left/right items, but let me give yours a shot...please hold :)
 
Upvote 0

Forum statistics

Threads
1,216,180
Messages
6,129,344
Members
449,506
Latest member
nomvula

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top