5 minutes before the off

Please post any questions regarding the program here.

Moderator: 2020vision

5 minutes before the off

Postby Drunkenight » Thu Apr 02, 2009 1:43 pm

Hi, Does anyone know what I need to put into my excel spreadsheet to trigger bets to only be placed when there are 5 minutes or less to race time?

I tried =if(d2<5,TRUE, FALSE)

but it didn't work as the time to the race is in the format hh:minmin:secsec
d2 is the cell containing the time to race.

Thanks
Chris
Drunkenight
 
Posts: 246
Joined: Thu Apr 02, 2009 1:38 pm

Postby Ian » Thu Apr 02, 2009 2:26 pm

=IF(MINUTE(D2)<5,TRUE,FALSE)
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby Drunkenight » Thu Apr 02, 2009 2:53 pm

Hi Ian, thanks. I used that and it works, until race time goes negative.

A new problem - The problem is that when the race time goes negative it returns an error message
Drunkenight
 
Posts: 246
Joined: Thu Apr 02, 2009 1:38 pm

Postby GaryRussell » Thu Apr 02, 2009 3:06 pm

I use this really long formula which I'm sure could be simpler, but never got round to simplifying it. It converts the time to seconds from start.

Code: Select all
=IF(LEFT(D2)<>"-",(HOUR(D2)*3600)+(MINUTE(D2)*60)+SECOND(D2),-((HOUR(SUBSTITUTE(D2,"-",""))*3600)+(MINUTE(SUBSTITUTE(D2,"-",""))*60)+SECOND(SUBSTITUTE(D2,"-",""))))
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Drunkenight » Thu Apr 02, 2009 5:50 pm

Thanks! Works now.
Drunkenight
 
Posts: 246
Joined: Thu Apr 02, 2009 1:38 pm


Return to Help

Who is online

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