Race Distance

Please post any questions regarding the program here.

Moderator: 2020vision

Race Distance

Postby knot » Sat Dec 08, 2007 5:13 pm

how would it be possible to have the race distance that is in cell A1 in cell X2. Please
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester

Postby Ian » Sat Dec 08, 2007 5:45 pm

=IF(MID(A1,FIND(":",A1)+6,1)=" ",MID(A1,FIND(":",A1)+4,2),MID(A1,FIND(":",A1)+4,4))

That's my attempt - probably can be done neater. :)
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby danjuma » Mon May 04, 2009 9:14 am

Ian wrote:=IF(MID(A1,FIND(":",A1)+6,1)=" ",MID(A1,FIND(":",A1)+4,2),MID(A1,FIND(":",A1)+4,4))

That's my attempt - probably can be done neater. :)


Ian (or anybody),

How could I extract the race venue in A1 to another cell instead?

Thanks
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby doris_day » Mon May 04, 2009 1:12 pm

Try this. Paste the following into the cell you wish to paste the track:

=LEFT(A1,FIND(" ",A1)-1)
User avatar
doris_day
 
Posts: 968
Joined: Fri Nov 02, 2007 12:34 am

Postby danjuma » Mon May 04, 2009 6:40 pm

Works fine. Thanks a mill D_D, most grateful. :D
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby danjuma » Mon Apr 05, 2010 5:13 pm

Could somebody please assist with this. I want to extract the race type from say the examples below which would normally be in cell A1 (i.e Hcap, Hcap Chs) into another cell say AA1. What formula could I use please? Many thanks.

Redc 5th Apr - 14:00 5f Hcap
Hunt 5th Apr - 17:40 2m4f Hcap Chs
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby osknows » Mon Apr 05, 2010 6:47 pm

you could put this in a MODULE
Code: Select all
Function Sp(cell As Range, count As Integer)

Sp = Split(cell.Value, " ")(count)
End Function


then in excel use the following formulae

=Sp(cell, word_count)

eg if "Hunt 5th Apr - 17:40 2m4f Hcap Chs" is in cell A1 then

=Sp(A1,0) Hunt
=Sp(A1,1) 5th
=Sp(A1,2) Apr
=Sp(A1,3) -
=Sp(A1,4) 17:40
=Sp(A1,5) 2m4f
etc
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby danjuma » Mon Apr 05, 2010 6:51 pm

Ok, done it a very crude way. If somebody has got a better, more efficient solution, please oblige. Thanks


=IF(MID(A1,FIND(":",A1)+6,1)=" ",MID(A1,FIND(":",A1)+7,10),MID(A1,FIND(":",A1)+9,10))
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby danjuma » Mon Apr 05, 2010 6:57 pm

osknows wrote:you could put this in a MODULE
Code: Select all
Function Sp(cell As Range, count As Integer)

Sp = Split(cell.Value, " ")(count)
End Function


then in excel use the following formulae

=Sp(cell, word_count)

eg if "Hunt 5th Apr - 17:40 2m4f Hcap Chs" is in cell A1 then

=Sp(A1,0) Hunt
=Sp(A1,1) 5th
=Sp(A1,2) Apr
=Sp(A1,3) -
=Sp(A1,4) 17:40
=Sp(A1,5) 2m4f
etc


Oops! Looks like we posted about the same time. Thanks osknows. Your contribution and assistance in this forum is very much appreciated. :D
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby xraymitch » Mon Apr 05, 2010 7:12 pm

Hi Guys,

Not sure if it adds anything to the debate but have a look at what I have done with data provided from knot.

I bow to osknows and his so much better and elegant solution. I really must start learning this VBA stuff :)

Thanks for sharing your expertise

Ray
xraymitch
 
Posts: 410
Joined: Wed Jun 25, 2008 7:06 am
Location: UK

Postby xraymitch » Mon Apr 05, 2010 7:14 pm

xraymitch
 
Posts: 410
Joined: Wed Jun 25, 2008 7:06 am
Location: UK


Return to Help

Who is online

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