+ Reply to Thread
Results 1 to 6 of 6

Thread: Need help with a formula

  1. #1
    Valued Forum Contributor
    Join Date
    06-30-2008
    Location
    PSL, FL
    Posts
    221

    Need help with a formula

    Guys I would love some help.

    I am in the process of working on an excel sheet to help me track my sports betting. I am trying to work on a formula that calculates the amount needed to risk to gain a certain reward.

    So for instance if I type in th25at the Yanks are - 168 and I want to to win 25 dollars I must bet 25.

    Currently I have the formula written like below.

    =G7*E7/-100


    And G7 is the Amount I want to win (So I have it at 25)

    and E7 = the current line (-168)


    This part seems to work fine
    .

    The problem is when I have a favorite like a team that is +168.
    If I use this same formula it will say I need to bet -42 to win 25?


    Can someone explain this please?

    MAtt

  2. #2
    Registered User
    Join Date
    06-27-2008
    Location
    Durban, SA
    Posts
    5
    Not sure if I'm fully understanding the significance of the + and - ahead of the 168, but if you are simply wanting to return a positive value, try using the IF formula.

    =if((G7*E7/100)>0,(G7*E7/100),((G7*E7/100)*(-1)))

    There is probably a simpler way of returning negative values as positive, but this is the best I can do

  3. #3
    Valued Forum Contributor
    Join Date
    06-30-2008
    Location
    PSL, FL
    Posts
    221
    Guys It is to late for me to edit the 1st post so I rewrote it, Sorry I wrote the first post when I was to tired.



    Guys I would love some help.

    I am in the process of working on an excel sheet to help me track my sports betting. I am trying to work on a formula that calculates the amount needed to risk to gain a certain reward.

    So for instance if I enter 25 in the win box and the Yanks are - 168 and I want to win 25 dollars.
    Now because the Yankees are -168 and I do the following (PLEASE NOTE I MIGHT BE DOING THE MATH WRONG, BUT IT WORKS, IF YOU CAN SIMPLYFY PLEASE DO)
    25 (amount I want to win) * 1.68 (This is the -168) = 42 (This is the amount I must wager)
    Or if I want to win 31
    31*1.68 = 52.08
    Now lets say I am playing a different game
    Tigers +147 I simply do the opposite
    25 (amount I want to win) / (This time I must divide sine it is a + number) 1.47 (This is the +147) = 17.0068 (This is the amount I must wager) And I want it to round up to 17.01


    Currently I have the formula written like below.

    Yankees Game Example
    =G7*E7/-100
    And G7 is the Amount I want to win (So I have it at 25)
    and E7 = the current line (-168)

    Tigers Game Example
    =G7*E7/-100
    And G7 is the Amount I want to win (So I have it at 25)
    and E7 = the current line (+147)

    Problem is I still got it to *, I don’t know how to make it / on + games and * on negative games?

    Guys any help would be greatly appreciated.


    Matt
    Last edited by rbpd5015; 06-30-2008 at 11:38 AM.

  4. #4
    Registered User
    Join Date
    03-20-2008
    Posts
    24
    Try

    =ABS((G7*E7)/-100)

    that pretty much seemed to fix it when I tried various numbers in there, but I don't gamble on sports, so I don't know for sure that the outcome is correct, a few more examples would help me understand if this isn't working.

  5. #5
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,777
    Maybe like this:
          ---A--- -B-- ---C---- ---D----
      1    Team   Line   Win      Bet   
      2   Yankees -168  $25.00   $42.00 
      3   Tigers   147  $25.00   $17.01
    The formula in D2 and copied down is = IF(B2 < 0, - C2 * B2 / 100, C2 / B2 * 100)

  6. #6
    Registered User
    Join Date
    06-27-2008
    Location
    Durban, SA
    Posts
    5
    Okay I got you now...
    Basically, what you need to do is use an IF formula (IF the number is positive, use one calculation, if not, use another)

    Try this:
    =IF(E7>0,(G7/(E7/100)),(G7*E7/-100))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0