COUNTIF Statement

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

COUNTIF Statement

Postby Castillo » Tue Mar 28, 2006 2:34 pm

Hi All

I'm developing a spreadsheet to use on Horses when the market goes into Play, part of my formula is :

COUNTIF(F5:F40,"<5.5")<2

Which basically means do not trigger the BACK command if there are more than 2 runners with odds of
5.4 or less, only BACK if there is one runner below these odds. However what I would like to do is instead of the value "<5.5"
I want to replace it with "<F5+3" So it looks at the F5 odds adds 3 and so if F5 was 2.1 BACK if there is one runner below 2.1+3 ie odds of 5.1
I can't seem to get it to work, can the criteria for COUNTIF contain a cell ref or must it always be a number.
Any help will be appreciated...

Cheers
Castillo
Castillo
 
Posts: 346
Joined: Thu Mar 16, 2006 11:01 am

Postby boycee » Tue Mar 28, 2006 2:44 pm

Have you tried using brackets?

i.e. <(F5+3)
boycee
 
Posts: 124
Joined: Fri Nov 25, 2005 1:35 pm

Postby thunderfoot » Tue Mar 28, 2006 3:17 pm

I think I understand that you want to avoid making a bet if 3 or more Odds are less than 5.50, if so, various ways around this:

1. as you're using formulae add an IF formula to return a '1' in another column if the Odds are over a set level. So you then SUM the 1's, 'n if there's too many of 'em ......!!
2. Try the SMALL statement. i.e. =SMALL(F5:F40,3). The '3' will return the 3rd smallest Odds, and if that's greater than your 5.50 target then ...........!!

Loads of other options, but these are two of the top-of-me-head :wink:
User avatar
thunderfoot
 
Posts: 270
Joined: Sat Nov 19, 2005 2:52 pm
Location: West Country

Postby Castillo » Tue Mar 28, 2006 3:37 pm

Not quite, but close. Basically I use the Rank function to put the selections in order depending on Odds available i.e =RANK(F5,F$5:F$40,1)
The Back trigger is only made if the selection meets the odds criteria specified and the RANK value is 1 i.e the leader
With the COUNTIF statement I'm trying to stop the BACK being made if another horse's ODDS are very close to the leaders, I want a gap of at lease 3
between the leader and the next placed horse before the BACK trigger is made. Hence me trying to use "<F5+3"
So if the Horse leading is odds of 4, 2nd placed is 6.9 NO BET, but if 2nd placed is odds of 7.1 then the leading horse will be the only selection Below F5+3 and the bet will be made. Thanks Boycee, tried the brackets didn't seem to work, I think it needs to be in quotation marks?

Thanks
Castillo
Castillo
 
Posts: 346
Joined: Thu Mar 16, 2006 11:01 am

Postby GeorgeUK » Tue Mar 28, 2006 4:21 pm

This should get you close.

=COUNTIF(F5:F40,">"&SUM(F5+3))
previously known as Gaseous (on the betfair forum)
User avatar
GeorgeUK
 
Posts: 315
Joined: Sat Nov 19, 2005 10:18 pm
Location: Scotland

Postby Castillo » Tue Mar 28, 2006 5:17 pm

GeorgeUK wrote:This should get you close.

=COUNTIF(F5:F40,">"&SUM(F5+3))


Many Thanks GeorgeUK, swapped > for < and it worked a treat :wink:
Castillo
 
Posts: 346
Joined: Thu Mar 16, 2006 11:01 am

Postby GeorgeUK » Wed Mar 29, 2006 9:07 am

Glad you spotted my, umm... deliberate mistake :oops: :oops:

:lol: :lol: :lol:
previously known as Gaseous (on the betfair forum)
User avatar
GeorgeUK
 
Posts: 315
Joined: Sat Nov 19, 2005 10:18 pm
Location: Scotland


Return to Discussion

Who is online

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