LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default how do i calculate wins and losses for basketball scoring?

I'd have a line for each game, with team names in columns A and D, and the
scores in column B and C. Then I'd have a results in columns E and F (which
can eventually be hidden), with the following formulas.

Column E, for the result of the team in column A:
=IF(OR(ISBLANK(B2),ISBLANK(C2)),"",IF(B2C2,"W",IF (C2B2,"L","T")))

Column F, for the result of the team in column B:
=IF(OR(ISBLANK(B2),ISBLANK(C2)),"",IF(C2B2,"W",IF (B2C2,"L","T")))
or more simply:
=IF(E2="W","L",if(E2="L","W",E2))

Then a table (in a new worksheet) to tally the results:
Cell A2 has team name
Cell B2 has wins:
=Sum(if(Sheet1!A1:A200=A2,if(Sheet1!E1:E200="W",1, 0)))+Sum(if(Sheet1!D1:D200=A2,if(Sheet1!F1:F200="W ",1,0)))
Cell C2 has losses:
=Sum(if(Sheet1!A1:A200=A2,if(Sheet1!E1:E200="L",1, 0)))+Sum(if(Sheet1!D1:D200=A2,if(Sheet1!F1:F200="L ",1,0)))

Note that these last two are array formulas, so press Control-Shift-Enter.
And adjust the 200 if there are more games to count. Or instead of doing
array formulas, you could have the formula in the results columns of Sheet1
return something like "BullsWin" or "BullsLose" in place of "W" and "L", then
count wins and losses this way:
=COUNTIF(Sheet1!E1:F200,A2&"Win")
=COUNTIF(Sheet1!E1:F200,A2&"Lose")

"rayammo461" wrote:

I have created a scoring spreadsheet for a fantasy basketball league. I'm
trying to automatically calculate the wins and losses rather than calculate
them manually. How do I do this??

send responses to:

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ncaa basketball bracket - repost robert morris Excel Discussion (Misc queries) 0 October 8th 07 07:44 PM
NCAA Basketball Bracket 2008 robert morris Excel Discussion (Misc queries) 0 October 5th 07 03:11 PM
How do I determine a winning % based on wins, losses, and ties? rolly g Excel Worksheet Functions 3 January 26th 06 09:39 PM
Basketball/Any Sport League Table MATTNOOVE New Users to Excel 7 July 10th 05 05:43 PM
Formula to track wins/loses WallyB New Users to Excel 1 December 26th 04 11:18 PM


All times are GMT +1. The time now is 03:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"