Weight colour age columns

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

Moderator: 2020vision

Weight colour age columns

Postby Sussexguy44 » Fri Dec 16, 2022 12:19 pm

Hi,

I looking to create a formula to find horses that are male and are carrying less tham 10. 4ibs. I have the two colums in place. The colour age column shows B/G and B/F. I only need the G and F element of this. In the weight column the data shows 4/10-5. I only need the weight element of this not the age. Is there a formula which can find only the parts I need and then put a 1,0 in a colums if yes or no?
Sussexguy44
 
Posts: 55
Joined: Thu Oct 14, 2021 9:43 am

Re: Weight colour age columns

Postby Sussexguy44 » Fri Dec 16, 2022 4:02 pm

To clarify Im looking to select male horses carrying 10st 4 Ilbs or less.
Sussexguy44
 
Posts: 55
Joined: Thu Oct 14, 2021 9:43 am

Re: Weight colour age columns

Postby Captain Sensible » Fri Dec 16, 2022 11:45 pm

Personally I think you'd be better off writing a custom function in VBA rather than formulas as formulas will get very messy.

With formulas you'd use search and find formulas to split the text. Maybe check out https://www.ablebits.com/office-addins- ... ing-excel/
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Re: Weight colour age columns

Postby GaryRussell » Sat Dec 17, 2022 7:41 am

You could also try the textsplit function. It outputs the contents into two cells.

eg. where y5 is the cell containing age/weight
Code: Select all
=TEXTSPLIT(y5,"/")
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: Weight colour age columns

Postby Sussexguy44 » Sat Dec 17, 2022 11:28 am

Hiya,

=IF(ISNUMBER(SEARCH("G",Z5)),1,0). I have pursued this and the formula as noted works for finding the sex of the horse. It finds the G (Gelding) and give me a 1. This would only work for NH racing as in Flat racing there are colts which would have a C. I will pursue the TEXTSPLIT function for the weight being carried.
Sussexguy44
 
Posts: 55
Joined: Thu Oct 14, 2021 9:43 am

Re: Weight colour age columns

Postby Captain Sensible » Sat Dec 17, 2022 1:11 pm

Never heard of textsplit before, learn something new everyday.

You didn't mention you were looking for a C in the opening post so didn't include it. If it's only C and G and they wouldn't appear in some other form in the cell you could use countif

=COUNTIF(A1;"*C*") + COUNTIF(A1;"*G*")
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Re: Weight colour age columns

Postby Sussexguy44 » Mon Dec 19, 2022 12:34 pm

Thanks Captain, this is better than I currently have. To make it 100% I would like to exclude all data to the left of the /. So the data I am looking at is the colour and age on the horse. This is shown in the cell as b/g which is a bay gelding. Could I use the countif function and only search data to the right of the / as I am only interested in the sex of the horse.
Sussexguy44
 
Posts: 55
Joined: Thu Oct 14, 2021 9:43 am

Re: Weight colour age columns

Postby Captain Sensible » Mon Dec 19, 2022 5:13 pm

Yep easy enough to split the string by the / just by using the RIGHT function

=RIGHT(A1, SEARCH("/",A1,1)-1)

Also the TEXTSPLIT option Gary suggested by that doesn't work with my version of excel as I think TEXTSPLIT is new.

But the best thing to do is always to go with the easy option which if the data is ouput in a regular format why not just search for /G or /C like

=COUNTIF(A1,"*/C*") + COUNTIF(A1,"*/G*")

Otherwise you start making formulas unneccessarily long
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm


Return to Discussion

Who is online

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