Validate runners against chosen list.

Please post any questions regarding the program here.

Moderator: 2020vision

Validate runners against chosen list.

Postby andyh » Mon May 28, 2007 3:40 pm

Hi, I have been trying without success to trigger bets using a list of selected horses on Sheet 1 and a formula in the stake that checks the list and then calculates my stake based on the odds ( I bet to liability).

I have used the following in the stake cell -

=IF(ISNA(VLOOKUP(A5,Sheet1!$A$1:$A$100,1,FALSE)),"No bet",(200/R5))

where A5 contains the horse name, 200 is the stake and R5 the odds cell.

I hope somebody can help as I'm beginning to tear my hair out over this and I don't have much anyway!!

Cheers

Andy
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby Captain Sensible » Mon May 28, 2007 5:51 pm

What are the errors you're getting ? Nothing wrong with your vlookup formula. I assume that all the triggered betting is done from another sheet i.e sheet2 otherwise you need to amned Sheet1!$A$1:$A$100 as it's looking at itself. I also assume you have entered odds into R5
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby Ian » Mon May 28, 2007 5:56 pm

I can't see anything wrong with this as long as R5 contains a number.

What's going wrong ?
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby andyh » Mon May 28, 2007 8:10 pm

Hi guys, I get ERROR in Bet ref and the bet doesn't appear to fire.
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby andyh » Mon May 28, 2007 8:31 pm

Hi Guys looks like this -


Image

Cheers

Andy
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby Fixador » Mon May 28, 2007 8:47 pm

Andyh - your TRIGGER cells have a problem - check this
Fixador
 
Posts: 322
Joined: Mon Apr 23, 2007 9:24 am

Postby andyh » Mon May 28, 2007 9:00 pm

The trigger cell contains the following -

=IF(AND(H5>=2,H5<=12,$A$40<0.0166),"LAY","WAIT")

with A40 containing

=($D$2-INT($D$2))*24

Can I also clarify that if the list of horses is on sheet 1 and the aforementioned formulas including the stake lookup are all on sheet 2 then this isn't causing an issue?

Thanks for all the help.
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby Captain Sensible » Mon May 28, 2007 9:43 pm

I assume the #value error in your picture is just because the race has finished and the sheet has tried to fire a bet . Might be due to the stake not being rounded, I always round mine as a matter of course in any sheets I do. Try using

=IF(ISNA(VLOOKUP(A5,Sheet1!$A$1:$A$100,1,FALSE)),"No bet",ROUNDDOWN(200/R5,2))
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby Ian » Tue May 29, 2007 9:01 am

Shouldn't you be checking in your trigger formula that the horse in question is on the list ?

I think you may have triggered bets on some of the horses with a stake of "no bet".

In all my spreadsheets, I put all the criteria in the trigger formula and only work out the odds and the stake
if trigger cell is "LAY" leaving them blank if it isn't.

I also round the stake as the Capt suggests.
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby andyh » Wed May 30, 2007 10:18 pm

Hi Ian, would you therefore be using nested IF statements as the trigger formula?

Andy
andyh
 
Posts: 21
Joined: Thu Feb 08, 2007 11:24 am

Postby Captain Sensible » Thu May 31, 2007 12:06 am

andy your code seems to be firing bets on all runners when =IF(AND(H5>=2,H5<=12,$A$40<0.0166),"LAY","WAIT") is valid. As some of the runners wont have a stake entered it looks like the API is rejecting the whole request because of these 'duff' bets. You need to set your code to only fire bets only on the runners you want to i.e. the ones where you've entered a stake. Easiest way without amending the rest of your sheet would be to amend the trigger cell from

=IF(AND(H5>=2,H5<=12,$A$40<0.0166),"LAY","WAIT")

to

=IF(R5="No Bet","",IF(AND(H5>=2,H5<=12,$A$40<0.0166),"LAY","WAIT") )
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm


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.