Forums

General Betting

Welcome to Live View – Take the tour to learn more
Start Tour
There is currently 1 person viewing this thread.
acquiesce12
16 Dec 11 16:27
Joined:
Date Joined: 27 Jul 11
| Topic/replies: 3,088 | Blogger: acquiesce12's blog
Column F has over 2500+ cells with numeric data as does Column G
Column F holds data for 'winning odds'
Column G holds data for 'losing odds'

Basically need to record how many of the cells in Column F which holds the winning odds -  were 'favourites'

How do I automatically do this do this without manually working it out.

Is there a formula for this that anyone know of ?
Pause • Switch to Standard View Excel Spreadsheet Question
Show More
Loading...
Report Baby Jesus • December 16, 2011 5:45 PM GMT
Do you have any columns giving you the market details as you'd need that to find the fav for each individual market, do the columns G and F have empty data i.e. if cell F11 is filled cell G11 is empty to show it was a winner
Report bf_fananatic • December 16, 2011 5:49 PM GMT
Are the odds stored in ascii format copied from an online sorce like racing post, if so you can
use a bit of code to string search for F or FAV before you convert to a value, personally I
edit them manually and omit the fav part of text .
Report acquiesce12 • December 16, 2011 6:18 PM GMT
Each and every cell from F2 down to cell F2677 has decimalised odds entered as does every cell from G2 down to G2677, so no cell is unfilled.

It's for tennis - so Column F has the odds for the winning player and G for the losing player, they are average odds taken on each match of the 2011 season from several bookmakers - so basically I wanted every cell in the F column that has a lower numeric value than it's neighbouring G cell to be calculated to give the total number of 'favourite wins'

They are other columns with market data next to them - but that's just tournaments category info, 250, 500 masters, slams world tour finals - dates - times - location - sets scores etc.

Thought it might be a long shot tbh.
Report bf_fananatic • December 16, 2011 6:27 PM GMT
how many outcomes are their in tennis, I assume its just 2 in which case the sub 2 prices are all favorites, but if its a leg of a competition price then its pretty tough or impossible to work out the favorite just from the price .
Report bf_fananatic • December 16, 2011 6:30 PM GMT
If colums f and g have both odds of the indiviual match players then
make another column say x and do
=If(g
Report bf_fananatic • December 16, 2011 6:31 PM GMT
=if(g
Report bf_fananatic • December 16, 2011 6:32 PM GMT
sorry thuis stupid pop up wont print the various excel exclamations
Report bf_fananatic • December 16, 2011 6:33 PM GMT
=if(g less than f;"favourite";"outsider")
Report bf_fananatic • December 16, 2011 6:34 PM GMT
less than is the arrow head point to the left, cant print it on here!
Report bf_fananatic • December 16, 2011 6:36 PM GMT
omit the ; for ,
Report bf_fananatic • December 16, 2011 6:38 PM GMT
its sometime better to flag a met condition with "true" as you then dont have to string match later for result and makes for more compact and easy code.
Report bf_fananatic • December 16, 2011 6:42 PM GMT
nearly all good programming involves using the simplest long term solution.
Report Baby Jesus • December 16, 2011 6:46 PM GMT
Just do what bf said , in cell H do do a simple if statement to put 1 in the cell if F is less than G then simply do a sum of column H for the number of winning favs

=IF(F2
Report Baby Jesus • December 16, 2011 6:47 PM GMT
=IF(F1
Report acquiesce12 • December 16, 2011 6:47 PM GMT
bf_fanatic, thanks for guidance, will try soon and let you know how it goes but have to log off now and if it doesn't work - it's a lesson for 2012, wok it out manually as I go along - which obviously should have occurred to me in the first place - such is life.
cheers.
Report Baby Jesus • December 16, 2011 6:48 PM GMT
grr what's up with this forum :(

=IF(F2[b]
Report top2rated • December 16, 2011 7:49 PM GMT
< >

http://chexed.com/ComputerTips/asciicodes.php

Alt60 for < 

Alt62 for >
Report Stoat40 • December 16, 2011 11:05 PM GMT
Another way.

Add a column H (or wherever), and insert formula to subtract losers from winners eg. =f-g.

The formula you can then use is:

=COUNTIF(h2:h2500,">0")
Report bf_fananatic • December 17, 2011 5:31 PM GMT
yep thats another way to do it stoat40, shame there isnt a programming department on this forum as
its needed and the developers forum isn't really a live environment as its based on some few projects that seem to be gathering dust in betfairs archives, presumably because of the effect of the top 500
on betfairs revenuesWink
Report bf_fananatic • December 17, 2011 5:32 PM GMT
fear not betfair, for we all code for the same thing and for the same reasons.
Report Lay Low • December 21, 2011 1:24 PM GMT
Just seen this. How about putting =SIGN(F1-G1) in column H
It will return 1,0 or -1 meaning fav won ,Joint Favs or Fav lost.
This will make further processing simpler
Post Your Reply
<CTRL+Enter> to submit
Please login to post a reply.

Wonder

Instance ID: 13539
www.betfair.com