Exported data from Adrian Massey

Please post any questions regarding the program here.

Moderator: 2020vision

Exported data from Adrian Massey

Postby hughsiepops » Thu May 01, 2008 3:22 pm

Morning.

I have been using Adrian Massey's site to download and look through some stats. The problem I have is that I am unable to sort via the time format of the races. (Eg. I download them and they appear as 12:40, 1:15, 1:50, 2:25, 2:55, 3:30, 4:05) when I sort on them by time the 1:15 and 1:50 races appear before the 12:40 race.

I would like to be able to convert all the times to the 24 hour clock. I've looked at converting the time using the LEFT_worksheet_function and adding 12 (to make this the 24 hour clock) but I can't get this to work. 1:30 successfully becomes 13:30, but 12:30 becomes 24:30

As far as I am aware I am unable to simply convert the times via the Format > Cells > Number > Time function in excel as they are imported into Excel as plain text.

Would anyone be able to help me with the final piece to my jigsaw please.? I'm trying to use the data available from Adrian Massey's site to back test some ideas I'm thinking of implementing with BA

Thanks
Hughsiepops
hughsiepops
 
Posts: 32
Joined: Mon Dec 17, 2007 3:26 pm
Location: Manchester

Postby KevinTHFC » Thu May 01, 2008 7:20 pm

Why not use an IF clause first ie
IF left(time,2) <> 12
then time =left(time,2)+12.

Kev
KevinTHFC
 
Posts: 72
Joined: Fri Aug 25, 2006 9:08 pm

Postby Ian » Thu May 01, 2008 8:24 pm

=TIMEVALUE(A1&" PM") might work if the cell is text. Won't work if any races start before noon though.
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby hughsiepops » Thu May 01, 2008 10:32 pm

Thanks. Just struggling on putting that together.

Here is an example of the exported data. When I import it into Excel I use commas and under the 'ODDS' heading I import it as text

Thanks
Hughsiepops

DATE,TIME,MEETING,SELECTION,ODDS,POSITION,RUNNERS,BF ODDS
02/02/2008,1:25,Doncaster,TIDALBAY,1-4,2,6,1.26
02/02/2008,1:55,Doncaster,CELESTIALHALO,2-5,2,15,1.42
02/02/2008,12:50,Doncaster,KALAHARIKING,6-5,4,16,2.29
02/02/2008,2:25,Doncaster,MOBAASHER,11-4,5,14,4
02/02/2008,3:00,Doncaster,ANDREAS,7-2,7,11,5.1,
02/02/2008,3:30,Doncaster,NYKEL,7-1,F,19,9.2,
hughsiepops
 
Posts: 32
Joined: Mon Dec 17, 2007 3:26 pm
Location: Manchester

Postby phrenetic » Thu May 01, 2008 10:54 pm

Hughsiepops

When you have imported your data (with the race time in column B, I assume), just add an additional column and enter the formula:

=B2+TIMEVALUE("12:00:00")

Copy the formula down so that it appears against each occupied row in your spreadsheet.

Make sure the new column is formatted using a custom format of hh:mm and you should have the race times in 24hr format.

Alistair
phrenetic
 
Posts: 142
Joined: Tue Oct 16, 2007 8:44 pm

Postby Ian » Fri May 02, 2008 7:47 am

Alistair, I think that your solution will fail, the same as mine, if the time is before 12 noon.
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby Bid » Fri May 02, 2008 11:57 am

I'm sure there's a better way of doing it but this will work

=IF(B2<TIME(12,0,0),B2+TIME(12,0,0),B2)
Bid
 
Posts: 74
Joined: Mon Oct 15, 2007 10:58 am

Postby Ian » Fri May 02, 2008 12:44 pm

Still doesn't work if the race time is 10 to 12.
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby Bid » Fri May 02, 2008 1:02 pm

10 to midnight no - but it works if it's 10 to midday
Bid
 
Posts: 74
Joined: Mon Oct 15, 2007 10:58 am

Postby Bid » Fri May 02, 2008 2:18 pm

Sorry I'm being stupid!

How about?

=IF(B2<TIME(10,0,0),B2+TIME(12,0,0),B2)


Providing there's no races before 10 in the morning or after 10 at night it should work.
Bid
 
Posts: 74
Joined: Mon Oct 15, 2007 10:58 am


Return to Help

Who is online

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