D2 Cell

Please post any questions regarding the program here.

Moderator: 2020vision

D2 Cell

Postby bonafu » Thu Sep 23, 2010 6:43 am

How can I change the inplay-time in cell D2, which has a "-" prefix, into a time without the prefix?

For example:

-00:16:00 to 00:16:00 and then to 16

Thanks for help
bonafu
 
Posts: 1
Joined: Thu Sep 23, 2010 6:09 am

Postby mak » Thu Sep 23, 2010 8:58 am

this is from Gary
it will convert d2 time to seconds

=IF(LEFT(D2)<>"-";(HOUR(D2)*3600)+(MINUTE(D2)*60)+SECOND(D2);-((HOUR(SUBSTITUTE(D2;"-";""))*3600)+(MINUTE(SUBSTITUTE(D2;"-";""))*60)+SECOND(SUBSTITUTE(D2;"-";""))))


Gary
as a suggestion can you add in BA a cell that perform as this formula, i think
80% of the users are asking the particular question :)
mak
 
Posts: 1086
Joined: Tue Jun 30, 2009 8:17 am

Postby easternpromise » Thu Nov 10, 2011 5:27 pm

Is there a way to adapt this formula, so i can count the race time once its gone in play?

I am trying to time my bets once the race has started
easternpromise
 
Posts: 82
Joined: Wed Feb 13, 2008 7:38 pm

Postby Captain Sensible » Thu Nov 10, 2011 6:35 pm

I have this code in one of my sheets that shows the amount of seconds the race has been inplay in cell X2 and the off time in cell x1



If Cells(2, 5) = "In Play" Then
If Cells(1, 24) = "" Then Cells(1, 24) = Cells(2, 3)
If Cells(1, 24) <> "" Then Cells(2, 24) = DateDiff("s", Cells(1, 24), Cells(2, 3))
End If
If Cells(2, 5) <> "In Play" And Cells(2, 6) <> "Suspended" Then
Cells(1, 24) = ""
Cells(2, 24) = ""
End If
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby Captain Sensible » Thu Nov 10, 2011 6:39 pm

The second part just resets the counter for me for the next market obviously there's no need for you to use that just use something else to reset the cell x1 and x2 to ""

If Cells(2, 5) = "In Play" Then
If Cells(1, 24) = "" Then Cells(1, 24) = Cells(2, 3)
If Cells(1, 24) <> "" Then Cells(2, 24) = DateDiff("s", Cells(1, 24), Cells(2, 3))
End If
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 69 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.