+ Reply to Thread
Results 1 to 5 of 5

Complicated Formula to do with Sports Betting Lines

  1. #1
    Registered User
    Join Date
    01-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    27

    Complicated Formula to do with Sports Betting Lines

    Ok... My next complicated one... if you get this you are a genius.


    column
    a b c
    2 -120 win
    1 100 lose
    1 210 win



    i need a calculation for sports betting...
    column a is units
    column b is the line
    column c is win or lose or tie

    i want a total... but
    if LOSE then minus what is in column a
    if TIE then add nothing
    if WIN .... if column b is positive then a times 100/b
    if WIN .... if column b is negative then a times b/100



    so in the example above i would need an output of 2*100/120 or 1.67 plus 1*210/100 or 2.1..... so the cell would need to read 1.67 - 1 + 2.1 or 2.77.... YIKES

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Complicated Formula to do with Sports Betting Lines

    the example does not match the criteria in writing for the WIN option (it is stated backwards). I followed the example...
    Attached Files Attached Files

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Complicated Formula to do with Sports Betting Lines

    hi traggs25. like rcm, i followed your example as it doesnt match your criteria.
    for loss:
    =-SUMPRODUCT((C2:C4="lose")*(A2:A4))
    for win (positive):
    =SUMPRODUCT((C2:C4="win")*(B2:B4>=0),A2:A4,B2:B4)/100
    for win (negative):
    =SUMPRODUCT((C2:C4="win")*(B2:B4<0),A2:A4)*100/ABS(SUMPRODUCT((C2:C4="win")*(B2:B4<0),B2:B4))

    add them up & you can get your answer

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Complicated Formula to do with Sports Betting Lines

    Or May be this...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    01-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    27

    Re: Complicated Formula to do with Sports Betting Lines

    Thanks everyone! Awesome!

+ 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.6.0 RC 1