I am having a problem with my formula. I have a wrestling record book that I am trying to get points for. Example if a person won a match with a pin I want them to get 4 points. If they Lose a match they lose .5 points. I want to be able to add up points for Wins/Loses and How they won. The problem is the If/and statements do not add up the points.
I get the 3.5 for the Win/Loss but it doesn't add the the 4 points for the Pins. Can someone help?
[TABLE="width: 500"]
<tbody>[TR]
[/TR]
[TR]
[TD]Weight[/TD]
[TD]Wrestler[/TD]
[TD]Opponent[/TD]
[TD]School[/TD]
[TD]Result[/TD]
[TD]How[/TD]
[TD]Record[/TD]
[TD]Pins[/TD]
[TD]Points[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]OP1[/TD]
[TD][/TD]
[TD]W[/TD]
[TD]Pin[/TD]
[TD]2-1[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Op2[/TD]
[TD][/TD]
[TD]W[/TD]
[TD]Pin[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]OP3[/TD]
[TD][/TD]
[TD]L[/TD]
[TD]Dec[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So my code in I2 is {=SUM(IF((E2:E100="W"),2,0),IF((E2:E100="L"),-0.5,0),IF(AND(E2:E100="W",F2:F100="Pin"),2,0),IF(AND(E2:E100="W",F2:F100="TF"),1,0))}
I get the 3.5 for the Win/Loss but it doesn't add the the 4 points for the Pins. Can someone help?
[TABLE="width: 500"]
<tbody>[TR]
[/TR]
[TR]
[TD]Weight[/TD]
[TD]Wrestler[/TD]
[TD]Opponent[/TD]
[TD]School[/TD]
[TD]Result[/TD]
[TD]How[/TD]
[TD]Record[/TD]
[TD]Pins[/TD]
[TD]Points[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]OP1[/TD]
[TD][/TD]
[TD]W[/TD]
[TD]Pin[/TD]
[TD]2-1[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Op2[/TD]
[TD][/TD]
[TD]W[/TD]
[TD]Pin[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]OP3[/TD]
[TD][/TD]
[TD]L[/TD]
[TD]Dec[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So my code in I2 is {=SUM(IF((E2:E100="W"),2,0),IF((E2:E100="L"),-0.5,0),IF(AND(E2:E100="W",F2:F100="Pin"),2,0),IF(AND(E2:E100="W",F2:F100="TF"),1,0))}