Golf Bet Sheet

Golfer1973

New Member
Joined
Jul 18, 2019
Messages
1
So I am creating a bet sheet to track all of my bets for a golf tournament. The sheet has the bet amount and then a cell for my score and my openents score. I was trying to figure out a formula that stated that IF my score was higher than the opponents score to return a negative number (loss) equal to my bet amount but if my score was lower than the opponents score to return a positive number equal to my bet amount. So A1 might have the bet Amount, A2 my score, B2 my opponents score and C2 would be either the win or loss.

Can anyone help ?
 

Some videos you may like

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
18,974
Office Version
2013
Platform
Windows
what about

<b>Excel 2013/2016</b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style=";">Bet amount</td><td style=";">My score</td><td style=";">his Score</td><td style=";">win +/-</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style="text-align: right;;"> $ 5.00 </td><td style="text-align: right;;">5</td><td style="text-align: right;;">4</td><td style="text-align: right;;">-5</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D2</th><td style="text-align:left">=IF(<font color="Blue">B2<C2,A2,IF(<font color="Red">B2>C2,A2*-1,"Square"</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
18,974
Office Version
2013
Platform
Windows
Maybe another option for the whole 18 holes


<b>Excel 2013/2016</b><table cellpadding="2.5px" rules="all" style=";background-color: rgb(255,255,255);border: 1px solid;border-collapse: collapse; border-color: rgb(187,187,187)"><colgroup><col width="25px" style="background-color: rgb(218,231,245)" /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: rgb(218,231,245);text-align: center;color: rgb(22,17,32)"><th></th><th>A</th><th>B</th><th>C</th><th>D</th></tr></thead><tbody><tr ><td style="color: rgb(22,17,32);text-align: center;">1</td><td style="text-align: right;;"></td><td style=";">Bet amount</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">2</td><td style="text-align: right;;"></td><td style="text-align: right;;"> $ 5.00 </td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">3</td><td style=";">Hole</td><td style=";">My score</td><td style=";">his Score</td><td style=";">win +/-</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">4</td><td style="text-align: right;;">1</td><td style="text-align: right;;">5</td><td style="text-align: right;;">4</td><td style="text-align: right;;">-5</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">5</td><td style="text-align: right;;">2</td><td style="text-align: right;;">5</td><td style="text-align: right;;">4</td><td style="text-align: right;;">-10</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">6</td><td style="text-align: right;;">3</td><td style="text-align: right;;">5</td><td style="text-align: right;;">5</td><td style="text-align: right;;">-10</td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">7</td><td style="text-align: right;;">4</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">8</td><td style="text-align: right;;">5</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">9</td><td style="text-align: right;;">6</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">10</td><td style="text-align: right;;">7</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">11</td><td style="text-align: right;;">8</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">12</td><td style="text-align: right;;">9</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">13</td><td style="text-align: right;;">10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">14</td><td style="text-align: right;;">11</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">15</td><td style="text-align: right;;">12</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">16</td><td style="text-align: right;;">13</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">17</td><td style="text-align: right;;">14</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">18</td><td style="text-align: right;;">15</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">19</td><td style="text-align: right;;">16</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">20</td><td style="text-align: right;;">17</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr><tr ><td style="color: rgb(22,17,32);text-align: center;">21</td><td style="text-align: right;;">18</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style=";"></td></tr></tbody></table><p style="width:4.8em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid rgb(187,187,187);border-top:none;text-align: center;background-color: rgb(218,231,245);color: rgb(22,17,32)">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: rgb(255,255,255)" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D4</th><td style="text-align:left">=IF(<font color="Blue">B4<C4,B2,IF(<font color="Red">B4>C4,B2*-1</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D5</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B5="",C5=""</font>),"",IF(<font color="Red">B5=C5,D4,IF(<font color="Green">B5<C5,$B$2+D4,IF(<font color="Purple">B5>C5,$B$2*-1+D4</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D6</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B6="",C6=""</font>),"",IF(<font color="Red">B6=C6,D5,IF(<font color="Green">B6<C6,$B$2+D5,IF(<font color="Purple">B6>C6,$B$2*-1+D5</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D7</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B7="",C7=""</font>),"",IF(<font color="Red">B7=C7,D6,IF(<font color="Green">B7<C7,$B$2+D6,IF(<font color="Purple">B7>C7,$B$2*-1+D6</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D8</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B8="",C8=""</font>),"",IF(<font color="Red">B8=C8,D7,IF(<font color="Green">B8<C8,$B$2+D7,IF(<font color="Purple">B8>C8,$B$2*-1+D7</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D9</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B9="",C9=""</font>),"",IF(<font color="Red">B9=C9,D8,IF(<font color="Green">B9<C9,$B$2+D8,IF(<font color="Purple">B9>C9,$B$2*-1+D8</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D10</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B10="",C10=""</font>),"",IF(<font color="Red">B10=C10,D9,IF(<font color="Green">B10<C10,$B$2+D9,IF(<font color="Purple">B10>C10,$B$2*-1+D9</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D11</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B11="",C11=""</font>),"",IF(<font color="Red">B11=C11,D10,IF(<font color="Green">B11<C11,$B$2+D10,IF(<font color="Purple">B11>C11,$B$2*-1+D10</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D12</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B12="",C12=""</font>),"",IF(<font color="Red">B12=C12,D11,IF(<font color="Green">B12<C12,$B$2+D11,IF(<font color="Purple">B12>C12,$B$2*-1+D11</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D13</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B13="",C13=""</font>),"",IF(<font color="Red">B13=C13,D12,IF(<font color="Green">B13<C13,$B$2+D12,IF(<font color="Purple">B13>C13,$B$2*-1+D12</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D14</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B14="",C14=""</font>),"",IF(<font color="Red">B14=C14,D13,IF(<font color="Green">B14<C14,$B$2+D13,IF(<font color="Purple">B14>C14,$B$2*-1+D13</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D15</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B15="",C15=""</font>),"",IF(<font color="Red">B15=C15,D14,IF(<font color="Green">B15<C15,$B$2+D14,IF(<font color="Purple">B15>C15,$B$2*-1+D14</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D16</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B16="",C16=""</font>),"",IF(<font color="Red">B16=C16,D15,IF(<font color="Green">B16<C16,$B$2+D15,IF(<font color="Purple">B16>C16,$B$2*-1+D15</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D17</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B17="",C17=""</font>),"",IF(<font color="Red">B17=C17,D16,IF(<font color="Green">B17<C17,$B$2+D16,IF(<font color="Purple">B17>C17,$B$2*-1+D16</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D18</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B18="",C18=""</font>),"",IF(<font color="Red">B18=C18,D17,IF(<font color="Green">B18<C18,$B$2+D17,IF(<font color="Purple">B18>C18,$B$2*-1+D17</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D19</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B19="",C19=""</font>),"",IF(<font color="Red">B19=C19,D18,IF(<font color="Green">B19<C19,$B$2+D18,IF(<font color="Purple">B19>C19,$B$2*-1+D18</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D20</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B20="",C20=""</font>),"",IF(<font color="Red">B20=C20,D19,IF(<font color="Green">B20<C20,$B$2+D19,IF(<font color="Purple">B20>C20,$B$2*-1+D19</font>)</font>)</font>)</font>)</td></tr><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D21</th><td style="text-align:left">=IF(<font color="Blue">OR(<font color="Red">B21="",C21=""</font>),"",IF(<font color="Red">B21=C21,D20,IF(<font color="Green">B21<C21,$B$2+D20,IF(<font color="Purple">B21>C21,$B$2*-1+D20</font>)</font>)</font>)</font>)</td></tr></tbody></table></td></tr></table><br />
 

Watch MrExcel Video

Forum statistics

Threads
1,102,783
Messages
5,488,855
Members
407,658
Latest member
Arias610

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top