[Solved] Win/draw/loss formula

Discuss the spreadsheet application
Post Reply
barnbogen
Posts: 4
Joined: Tue Mar 15, 2016 3:34 am

[Solved] Win/draw/loss formula

Post by barnbogen »

I need a simple formula that lets if cell A is 1 then the value of cell d is 3
if the value of cell B is 1 then the value of cell d is 2
if the value of cell c is 1 then the value of cell d is 1

it's a simple results of a tournament: 3 points for a win; 2 points for a draw; 1 point for a loss

I can get 2 arguments, but not 3

Title Edited. A descriptive title for posts helps others who are searching for solutions and increases the chances of a reply (Hagar, Moderator).
Last edited by Hagar Delest on Wed Mar 16, 2016 10:42 pm, edited 1 time in total.
Reason: tagged [Solved].
Open Office 4.1.1
OS X Yosemite
10.10.5
FJCC
Moderator
Posts: 9623
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: formula

Post by FJCC »

This should work in cell D2. Notice that I added the condition that if none of A2:C2 is equal to 1, the result is zero.

Code: Select all

=IF(A2=1;3;IF(B2=1;2;IF(C2=1;1;0)))
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
barnbogen
Posts: 4
Joined: Tue Mar 15, 2016 3:34 am

Re: formula

Post by barnbogen »

Man I'm just trying to create a win loss record for a pool of 4 teams and it's killing me:

the formula worked great for 3 for win 2 for draw and 1 for loss

but for the life of me I can't the logic if:
a scores 17 b scores 3
c scores 28 d scores 28
P W D L PF PA PD POINTS
MP1A 1823 1 1 0 0 17 3 14 3
MP1B ATLANTIS 1 0 0 1 3 17 -14 0
MP1C SOUTH 1 0 1 1 28 28 0 2
MP1D CHARLOTTE 1 0 1 0 28 28 0 2

these are just examples but I cannot get a 1 win 0 draw 0 loss; or 0 win 1 draw 0 loss
to work out logically, it just gives me a loss and a tie or win and a tie
Open Office 4.1.1
OS X Yosemite
10.10.5
barnbogen
Posts: 4
Joined: Tue Mar 15, 2016 3:34 am

Re: formula

Post by barnbogen »

this is the actual sheet that I'm trying to get a win/draw/loss table out of, then point values for win/loss/draw

then this is just the 1st round of games, how do I add the other results in
Attachments
7s Brackets.ods
(50.91 KiB) Downloaded 219 times
Open Office 4.1.1
OS X Yosemite
10.10.5
FJCC
Moderator
Posts: 9623
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Win/draw/loss formula

Post by FJCC »

I restricted the calculation to Sheet3. I assume you will have a summary table of matches as you do in A5:H10. I put formulas in M5:P10 to calculate who won, tied or lost each match. I changed the formulas in C16:L19 to sum the wins, losses and ties and the PA, PF for each team. You can add further results to the summary table to see how the results change.
Attachments
Bracket_FJCC.ods
(27.12 KiB) Downloaded 312 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
barnbogen
Posts: 4
Joined: Tue Mar 15, 2016 3:34 am

Re: Win/draw/loss formula

Post by barnbogen »

that's exactly what I needed, brilliant. I don't know how to thank you. I hope that I can extrapolate this to all the other pools
thanks again
Open Office 4.1.1
OS X Yosemite
10.10.5
Post Reply