sports spreadsheet to show W/L automatically

pdjarr

New Member
Joined
Nov 12, 2017
Messages
2
I'm trying to improve a sports spreadsheet that I've built. I want the win/loss to show automatically based on the score of the game each week. I have column E win/loss, column F team score, column G opponent's score. I have the overall record totaling itself already.

I could do =IF(F3>G3,"W","L") in each row, but that results in an errant "L" for games that haven't been played yet. This in turn messes up the overall record. Here's what I have right now.

[TABLE="width: 125"]
<tbody>[TR]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]W / L[/TD]
[TD]H[/TD]
[TD]V[/TD]
[/TR]
[TR]
[TD]W[/TD]
[TD]14[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD]17[/TD]
[TD]22[/TD]
[/TR]
[TR]
[TD]W[/TD]
[TD]28[/TD]
[TD]25[/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]L[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Wins[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Losses[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col span="2"></colgroup>[/TABLE]


The record should be 2-1 not 2-4. Is there a way to get the "W" or "L" to show only if a game has been played? To only show the "W" or "L" in column E if there's a value/score entered in columns F and G?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
.
Here's one method :

Code:
=IF(F3="","",IF(F3>G3,"W","L"))
 
Upvote 0

Forum statistics

Threads
1,224,830
Messages
6,181,228
Members
453,025
Latest member
Hannah_Pham93

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