Extract Date

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

Moderator: 2020vision

Extract Date

Postby knot » Tue Sep 22, 2015 9:36 pm

Hi all!

I am looking to extract the date from the following text:

GB / Redc 8th Sep / 14:20 7f Nursery

All i need is the 8th part. I can do this manually using the Excel Text To Columns feature but occasionally this does not work correctly. For example if i use the Text To Columns feature to extract the 8th from the following text for some reason i also get the Hcap Chs parts extracted.

GB / Worc 8th Sep / 14:10 2m4f Nov Hcap Chs
GB / Worc 8th Sep / 14:10 2m4f Nov Hcap Chs


So what i require is a reliable formula that will extract the 8th from all of the above race texts.

Any ideas please? :)
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester

Re: Extract Date

Postby Captain Sensible » Wed Sep 23, 2015 7:40 pm

Are you looking for a formula or VBA?

Here's a formula to pick out the 4th word in a text string in cell A1


=MID(MID(MID(SUBSTITUTE(A1," ","^",3),1,256),FIND("^",SUBSTITUTE(A1," ","^",3)),256),2,FIND(" ",MID(MID(SUBSTITUTE(A1," ","^",3),1,256),FIND("^",SUBSTITUTE(A1," ","^",3)),256))-2)

If it's a regular format it might be better for you to write a small VBA function using split in VBA rather than using long formulas
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Re: Extract Date

Postby knot » Wed Sep 30, 2015 6:59 pm

Cheers Captain, nice one! :)
knot
 
Posts: 196
Joined: Sun Feb 04, 2007 9:51 pm
Location: leicester


Return to Discussion

Who is online

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