ISNUMBER(SEARCH....problem

Find a developer for your Excel triggered betting needs and advertise your development service here.

Moderator: 2020vision

Postby Captain Sensible » Mon Sep 14, 2009 2:56 pm

I didn't know that Ian never use the fcast stuff myself, I guess you'd have to use an OR statement in there too if it was needed to include something like A1&"-" to catch those
User avatar
Captain Sensible
 
Posts: 2883
Joined: Sat Nov 19, 2005 2:29 pm

Postby osknows » Mon Sep 14, 2009 2:57 pm

Sorry it should be
=IF(ISERROR(FIND(A1&" ",A2&" ",1)),"","Y")

To pick up if there is a 1 on the end of the string
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby doris_day » Mon Sep 14, 2009 3:09 pm

Looks as though there is a space between all numbers so it looks like 1 - 10 / 10- 1 for instance
User avatar
doris_day
 
Posts: 967
Joined: Fri Nov 02, 2007 12:34 am

Postby doris_day » Mon Sep 14, 2009 3:10 pm

or rather 1 - 10 / 10 - 1
User avatar
doris_day
 
Posts: 967
Joined: Fri Nov 02, 2007 12:34 am

Postby Ian » Mon Sep 14, 2009 3:13 pm

Are you sure, Doris ? Have a look at the 4:40 at Yarmouth tomorrow. Perhaps the format is variable depending on who set sets the market up ?
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby doris_day » Mon Sep 14, 2009 3:19 pm

This version works fine:

=IF(ISNUMBER(SEARCH('RevFcst Calc'!$C$12&" ",'BF RevFcst'!A6,1)),"Y","")

Certainly in the cases I've looked at there is always a space between the numbers in column A on the RevFcst worksheet
User avatar
doris_day
 
Posts: 967
Joined: Fri Nov 02, 2007 12:34 am

Postby GaryRussell » Mon Sep 14, 2009 3:30 pm

Here's my attempt. I always revert to VBA :wink:

Insert the following code into a module. You can then use the formula =containsNumber(A5,"1") etc.

Code: Select all
Public Function containsNumber(r As Range, s As String) As Boolean
    containsNumber = False
    p = InStr(r.Value, s)
    If p <> 0 Then
        If p + (Len(s) - 1) = Len(r.Value) Then
            containsNumber = True
        Else
            If Not IsNumeric(Mid(r.Value, p + Len(s), 1)) Then containsNumber = True
        End If
    End If
End Function
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby doris_day » Mon Sep 14, 2009 3:44 pm

Excellent. That works too !!

Make me proud to be part of the forum, to be surrounded by such bright and generous people. Just what a good forum should be.

Thanks again....
User avatar
doris_day
 
Posts: 967
Joined: Fri Nov 02, 2007 12:34 am

Previous

Return to Find an Excel developer

Who is online

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