Time triggers

Please post any questions regarding the program here.

Moderator: 2020vision

Fast server spoiling time triggers

Postby kwame » Fri Oct 26, 2007 11:27 pm

I am happy (and grateful) for Castillo's (D2-int(D2))*24 and the follow on IF statement, but they are spoiled by the fact that the server I connect through runs about 3 minutes fast, and I obviously cannot adjust it.

What that means is that a race starts when D2 reaches minus 00.03.00.

Once D2 has passed 00.00.00, this causes Castillo's expression to produce a #VALUE# error.

Can someone please tell me how I can add 3 minutes to the D2 time (say in X2), before applying Castillo's expression to that reference cell?
kwame
 
Posts: 4
Joined: Fri Oct 26, 2007 11:05 pm
Location: Ghana

Postby phrenetic » Sat Oct 27, 2007 9:04 am

The difficulty is that when the value is positive it is treated as a number by Excel but when it is negative, it is treated as a string.

To get round this, you could try the following:

Code: Select all
IF(LEN(D2)=9,-1*(VALUE(MID(D2,2,2))+VALUE(MID(D2,5,2))/60+VALUE(MID(D2,8,2))/3600),(D2-INT(D2))*24)


This would mean that 00:03:00 would be 0.05 and -00:03:00 would be -0.05.

To be honest, I'm not sure why the positive entry can't just be D2*24 - can anyone explain this?

Alistair
phrenetic
 
Posts: 142
Joined: Tue Oct 16, 2007 8:44 pm

Postby phrenetic » Sat Oct 27, 2007 3:22 pm

Actually, best to amend this to:

Code: Select all
IF(LEFT(D2,1)="-",-1*(VALUE(MID(D2,2,2))+VALUE(MID(D2,5,2))/60+VALUE(MID(D2,8,2))/3600),(D2-INT(D2))*24)


as some positive time values appear to have a length of 9 (and therefore cause the wrong part of the formula to calculate).

Now the formula specifically looks for a negative value.

Alistair
phrenetic
 
Posts: 142
Joined: Tue Oct 16, 2007 8:44 pm

Postby kwame » Sat Oct 27, 2007 5:07 pm

Thanks very much Phrenetic.

I test drove the first version this afternoon and it solved my problem, except it fired prematurely on a few occasions. This may have been the instances that caused you to offer the second version.

I'll try that at Wolverhampton later.

Cheers,

Kwame
kwame
 
Posts: 4
Joined: Fri Oct 26, 2007 11:05 pm
Location: Ghana

Postby knot » Sat Oct 27, 2007 10:36 pm

IF(LEFT(D2,1)="-",-1*(VALUE(MID(D2,2,2))+VALUE(MID(D2,5,2))/60+VALUE(MID(D2,8,2))/3600),(D2-INT(D2))*24)

i cant get this to work :shock: . :?
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester

Postby phrenetic » Sun Oct 28, 2007 2:03 am

knot

What error did you get?

This is just a standard formula - forgive the stupid question, but you did precede it with an = sign, yes?

Alistair
phrenetic
 
Posts: 142
Joined: Tue Oct 16, 2007 8:44 pm

Postby knot » Sun Oct 28, 2007 8:34 am

= was used. When the countdown clock reached zero your formula turned to #### never went - 00:00:01
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester

Postby kwame » Sun Oct 28, 2007 12:49 pm

Version 2 worked fine for me (thanks Phrenetic), and cut out the premature bet-placement.

One other query (I can't find an answer elsewhere in the forum): what do I have to do to make the programme move to the next race on my quickpick list as soon as a bet has been placed? I am using the Beta version.
kwame
 
Posts: 4
Joined: Fri Oct 26, 2007 11:05 pm
Location: Ghana

Postby phrenetic » Mon Oct 29, 2007 3:44 pm

knot

#### would tend to suggest that the cell width was not wide enough or the cell formatting was incorrect. Try widening the cell and setting the format to General.

Alistair
phrenetic
 
Posts: 142
Joined: Tue Oct 16, 2007 8:44 pm

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 42 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.