Football formula

Please post any questions regarding the program here.

Moderator: 2020vision

Football formula

Postby oxerife » Tue May 25, 2010 7:12 pm

Hello everyone,

Can anybody help me with the following formula?

I want to know if a specific selection is within a range, 5 minutes before the off and save it to a cell.

Example: If Under 2.5 goals is bigger than 2.10 then C45 = "Y" else "N"

Thanks
User avatar
oxerife
 
Posts: 20
Joined: Sat Aug 29, 2009 1:08 am

Postby osknows » Wed May 26, 2010 1:18 pm

Hi oxerife,

Assuming the Under 2.5 goals back odds are in cell F5

Then in cell C45

=IF(AND(F5>=2,F5<=5),"Y","N")


this reads, if F5 is greater or equal to 2 AND less than or equal to 5 then C45 equals Y else N.

You just need to change F5>=2,F5<=5 to suit your needs

Os
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby osknows » Wed May 26, 2010 1:41 pm

sorry I forgot about the 5minutes before the start

put this in any unused cell to give the time before off in seconds

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

then assuming that formula is in cell Q1...

in cell C45

=IF(AND(F5>=2,F5<=5,Q1=300),"Y","N")

This will only turn Y for 1 second when Q1=300, if you want to introduce a window of say 5 seconds you could use

=IF(AND(F5>=2,F5<=5,Q1<=300,Q1>=300-5),"Y","N")
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby oxerife » Wed Jun 02, 2010 8:03 am

osknows wrote:sorry I forgot about the 5minutes before the start

put this in any unused cell to give the time before off in seconds

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

then assuming that formula is in cell Q1...

in cell C45

=IF(AND(F5>=2,F5<=5,Q1=300),"Y","N")

This will only turn Y for 1 second when Q1=300, if you want to introduce a window of say 5 seconds you could use

=IF(AND(F5>=2,F5<=5,Q1<=300,Q1>=300-5),"Y","N")


Thanks for your reply
User avatar
oxerife
 
Posts: 20
Joined: Sat Aug 29, 2009 1:08 am


Return to Help

Who is online

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