Working with time in Excel

Please post any questions regarding the program here.

Moderator: 2020vision

Working with time in Excel

Postby zapbrann » Tue Nov 24, 2009 6:22 pm

Hi All,

I am trying to place bets dependant on the time within a football match. I am fairly liberal and can use a 20+ minute window, so that removes the problem of matches starting/running late.

I have started by trying to get a formula to work from cell D2 and just use simple IF statements to say, if the time is less than -01:20:00 (generally 65 mins), but greater than -01:35:00 (~80mins) then place this bet.......

Unfortunately, I can't seem to make it work?

The number in D2 seems to be read as text, and when I take just the number out, because it is negative, excel assumes I am trying to write a formula and forces me to turn it into text again.....

I have had a good rummage around the forum, and various people allude to measuring against time from the off, without actually explaining how to do it!

Any help appreciated.

Regards,
zapbrann
 
Posts: 10
Joined: Tue Nov 24, 2009 3:59 pm

Postby mak » Tue Nov 24, 2009 6:30 pm

this is Gary's

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

it will help you get where you want
if it is below 0 it shows -
mak
 
Posts: 1086
Joined: Tue Jun 30, 2009 8:17 am

Postby zapbrann » Tue Nov 24, 2009 6:52 pm

Mak,

Thanks a lot, this is a great start, and not something I would have got to that quickly!

For those who copy this formula, just beware of how your version of excel treats comma's vs semicolon's, took me a little while to figure out why the formula wasn't working!

Thanks,

Zap.
zapbrann
 
Posts: 10
Joined: Tue Nov 24, 2009 3:59 pm


Return to Help

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 31 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.