Simple VBA Sports Betting Functions Template for Excel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RaginCajun
    SBR Hustler
    • 06-28-10
    • 87

    #71
    Ganchrow, is all of this for excel? i just tried to do the first command in a cell in excel. i typed in US2Dec(-110,-110) and nothing happened. do i need to do anything else?
    Comment
    • RickySteve
      Restricted User
      • 01-31-06
      • 3415

      #72
      You have to install the functions before you can use them.
      Comment
      • Kraghen
        SBR MVP
        • 07-08-10
        • 2509

        #73
        Hi there! Does it work on Macintosh's excel version?
        Comment
        • Flight
          Restricted User
          • 01-28-09
          • 1979

          #74
          If the Mac version supports VBA then yes. I believe it does. Open Excel and push ALT+F11 and see if the VB editor comes up. If it does, you're in business.
          Comment
          • sharpcat
            Restricted User
            • 12-19-09
            • 4516

            #75
            Originally posted by Kraghen
            Hi there! Does it work on Macintosh's excel version?
            Excel 2008 for Mac does not support VBA but all other versions do including the upcoming 2010 version.
            Comment
            • Shonner
              SBR MVP
              • 09-05-10
              • 1361

              #76
              Anyone have an idea of when the Demo Ganch posted back in August will be ready?
              Comment
              • Flight
                Restricted User
                • 01-28-09
                • 1979

                #77
                Originally posted by Shonner
                Anyone have an idea of when the Demo Ganch posted back in August will be ready?
                What are you referring to?
                Comment
                • Blacke
                  SBR Sharp
                  • 10-26-09
                  • 290

                  #78
                  nice work, thx
                  Comment
                  • cant call it
                    SBR Hall of Famer
                    • 08-29-10
                    • 8817

                    #79
                    does this work on excel 2010?
                    Comment
                    • blackf1re
                      SBR Sharp
                      • 01-31-10
                      • 487

                      #80
                      Doesn't seem to work on Excel 2010. And when trying to open the .xlt I get this:

                      "This workbook has lost its VBA project, ActiveX controls and any other programmability-related features."
                      Comment
                      • ArcadeFire
                        SBR High Roller
                        • 10-30-10
                        • 111

                        #81
                        Yes, I cannot get it to work in current Excel version, bummer.

                        Whatever happened to Ganchrow?
                        Comment
                        • hubie69
                          SBR Hall of Famer
                          • 09-16-10
                          • 7329

                          #82
                          Excellent work on these Ganchrow, amazingly helpful.
                          Comment
                          • Ramster
                            SBR Hustler
                            • 06-08-09
                            • 81

                            #83
                            Thank you OP..I downloaded
                            Comment
                            • Ganchrow
                              SBR Hall of Famer
                              • 08-28-05
                              • 5011

                              #84


                              This above link contains a workbook with a considerably more up to date version of these functions and more.

                              The VBA code was greatly refactored with much rewritten in C++ for added speed. WIN32 I'm afraid. .
                              Comment
                              • mjespoz
                                SBR Rookie
                                • 02-15-11
                                • 42

                                #85
                                Ganchrow! I have learnt so much from your Kelly posts (amongst others). Welcome back!
                                Comment
                                • frankzig
                                  SBR MVP
                                  • 10-26-09
                                  • 2268

                                  #86
                                  yea solid we ca axt uamytng
                                  Comment
                                  • frankzig
                                    SBR MVP
                                    • 10-26-09
                                    • 2268

                                    #87
                                    proper english baby your not in the street
                                    Comment
                                    • jhol3990
                                      SBR Rookie
                                      • 09-09-08
                                      • 45

                                      #88
                                      awesome, thanks for this. Just trying to find the gold in this forum and looks like i've struck some here. Thanks again.
                                      Comment
                                      • jjgold
                                        SBR Aristocracy
                                        • 07-20-05
                                        • 388179

                                        #89
                                        Nice work Ganch

                                        Anyone else would charge for this stuff
                                        Comment
                                        • cant call it
                                          SBR Hall of Famer
                                          • 08-29-10
                                          • 8817

                                          #90
                                          how do I translate this to english? I dont know anything about this
                                          Comment
                                          • RickySteve
                                            Restricted User
                                            • 01-31-06
                                            • 3415

                                            #91
                                            Ganchrow is the final boss.
                                            Comment
                                            • demens
                                              SBR MVP
                                              • 10-22-10
                                              • 2785

                                              #92
                                              Can these be used in OO Calc?
                                              Comment
                                              • Sacamano
                                                SBR High Roller
                                                • 11-13-11
                                                • 227

                                                #93
                                                Great work..thank you
                                                Comment
                                                • Inkwell77
                                                  SBR MVP
                                                  • 02-03-11
                                                  • 3227

                                                  #94
                                                  Awesome! Thank you!
                                                  Comment
                                                  • allin1
                                                    SBR MVP
                                                    • 11-07-11
                                                    • 4555

                                                    #95
                                                    bump and thanks!
                                                    Comment
                                                    • mikeorta20
                                                      SBR Rookie
                                                      • 05-21-12
                                                      • 1

                                                      #96
                                                      how come when i us the 'us2fair' function it gives me a negative number for the dog and the favorite. so both cells have a "-184" instead of one +/-. its messing me up when calculating win probablity.
                                                      Comment
                                                      • Ganchrow
                                                        SBR Hall of Famer
                                                        • 08-28-05
                                                        • 5011

                                                        #97
                                                        Originally posted by mikeorta20
                                                        how come when i us the 'us2fair' function it gives me a negative number for the dog and the favorite. so both cells have a "-184" instead of one +/-. its messing me up when calculating win probablity.
                                                        It's an array formula.

                                                        You need to enter it with CTRL+SHIFT+ENTER.

                                                        Also ... if you just want to calculate win probability you should use US2REAL rather than US2FAIR.
                                                        Comment
                                                        • bmurphy003
                                                          SBR Rookie
                                                          • 01-24-12
                                                          • 17

                                                          #98
                                                          Great thread, bit of an excel nerd here but I'm trying to come up with an if function that will return the change in units for each game betted on. Ex: (column 1, column 2, column 3, etc.) = (
                                                          line, result, base amount of units, unit change) = (-1.10, W, 1.00, *should return +1.00)

                                                          works fine unless betting a favorite with a losing result. Tried many combinations of

                                                          =if(AND(line<0,result ="W"),[base amount]* line....etc
                                                          buthavent quite figured it out.

                                                          Any thoughts/comments would be helpful
                                                          Comment
                                                          • Ganchrow
                                                            SBR Hall of Famer
                                                            • 08-28-05
                                                            • 5011

                                                            #99
                                                            Originally posted by bmurphy003
                                                            I'm trying to come up with an if function that will return the change in units for each game betted on. Ex: (column 1, column 2, column 3, etc.) = (
                                                            line, result, base amount of units, unit change) = (-1.10, W, 1.00, *should return +1.00)

                                                            works fine unless betting a favorite with a losing result. Tried many combinations of

                                                            =if(AND(line<0,result ="W"),[base amount]* line....etc
                                                            buthavent quite figured it out.

                                                            Any thoughts/comments would be helpful
                                                            You can use the function from my template:

                                                            Code:
                                                            =US2Res(<USOdds>, <WagerQuantity>, <Outcome>)
                                                            where <Outcome> is a string that starts with "W" for a winning bet and with "L" for a losing bet.

                                                            If you have your quantities listed as "base" rather than "risk" quantities, then you could use something like:

                                                            Code:
                                                            =quantity*IF(result="W", MAX(1,USOdds/100), (result="L")*MIN(-1,USOdds/100))
                                                            Comment
                                                            • gauchojake
                                                              BARRELED IN @ SBR!
                                                              • 09-17-10
                                                              • 34117

                                                              #100
                                                              Nice bump hoopy. Gotta get prepped for nfl
                                                              Comment
                                                              • satana
                                                                SBR Hustler
                                                                • 01-05-13
                                                                • 71

                                                                #101
                                                                does this work on google docs spreadsheet?
                                                                Comment
                                                                • Lo$t
                                                                  SBR Wise Guy
                                                                  • 06-03-10
                                                                  • 787

                                                                  #102
                                                                  Can I input Izzo any # into this thing?
                                                                  Comment
                                                                  • kzee89
                                                                    SBR Hustler
                                                                    • 03-08-10
                                                                    • 78

                                                                    #103
                                                                    I like the idea of applying VBA knowledge to sports.
                                                                    Comment
                                                                    • satana
                                                                      SBR Hustler
                                                                      • 01-05-13
                                                                      • 71

                                                                      #104
                                                                      Originally posted by satana
                                                                      does this work on google docs spreadsheet?
                                                                      Ok, I take it as no since I have to save the book.xlt file.
                                                                      I've office '07 installed on this old laptop, why can't I find find the Microsoft Office folder under C:\Program Files?
                                                                      edit found it

                                                                      Comment
                                                                      • satana
                                                                        SBR Hustler
                                                                        • 01-05-13
                                                                        • 71

                                                                        #105
                                                                        Originally posted by Ganchrow
                                                                        Type the following in cell A1:
                                                                        =us2prob(-110)
                                                                        Hit enter. If the result is 0.52381 then you know the function is working properl
                                                                        don't know if Granchow is still around here, but when I try this it doesn't work.
                                                                        all macros are enabled, I'm using office '07 and the file has been copied in the right folder.
                                                                        Comment
                                                                        Search
                                                                        Collapse
                                                                        SBR Contests
                                                                        Collapse
                                                                        Top-Rated US Sportsbooks
                                                                        Collapse
                                                                        Working...