OZmium Sports Betting and Horse Racing Forums

OZmium Sports Betting and Horse Racing Forums (http://forums.ozmium.com.au/index.php)
-   General Topics (http://forums.ozmium.com.au/forumdisplay.php?f=59)
-   -   Excel help again!!! (http://forums.ozmium.com.au/showthread.php?t=14052)

Twodogs 12th July 2006 07:35 PM

Excel help again!!!
 
Good Evening

Wondering what is possible? I have a column with winning dist data as follows
1(1300) 1(2050) 1(2500) 1(3050) 1(3200)

What I would like to be able to do is have a formula which would give the winning distance range like this 1300-3200 in an alternative column.

Thanks
Twodogs

jfc 13th July 2006 05:09 AM

Quote:
Originally Posted by Twodogs
Good Evening

Wondering what is possible? I have a column with winning dist data as follows
1(1300) 1(2050) 1(2500) 1(3050) 1(3200)

What I would like to be able to do is have a formula which would give the winning distance range like this 1300-3200 in an alternative column.

Thanks
Twodogs


=CONCATENATE(SUBSTITUTE(MID(A1,1+FIND("(",A1),4),")","")," - ",SUBSTITUTE(LEFT(RIGHT(A1,5),4),"(",""))

Twodogs 13th July 2006 06:12 AM

Thanks JFC

Works a treat!!! Don't for a moment understand it but all I can say is you beauty!!

Twodogs

ps what would be needed when there is no data in the column due to no winning distances to return a a zero rather than "value"

Twodogs 13th July 2006 09:18 AM

Hi JFC

Can I overcome the fact that when the column with winning distances is empty due to no winning distance I get a "value" error or would I need to look at the column with the winning distances and do something with that data first before applying your formula.

Thanks
Twodogs

jfc 13th July 2006 09:40 AM

Quote:
Originally Posted by Twodogs
Hi JFC

Can I overcome the fact that when the column with winning distances is empty due to no winning distance I get a "value" error or would I need to look at the column with the winning distances and do something with that data first before applying your formula.

Thanks
Twodogs


=IF(LEN(A1)>3,CONCATENATE(SUBSTITUTE(MID(A1,1+FIND("(",A1),4),")","")," - ",SUBSTITUTE(LEFT(RIGHT(A1,5),4),"(",""))," 0 ")

Twodogs 13th July 2006 11:38 AM

Thanks JFC,

Your time and help is much appreciated.

Twodogs

Twodogs 7th August 2006 02:58 PM

Good Afternoon

Can anyone help with following? I have searched for an answer but it is beyond my knowledge unfortunately.

I have this data in one column which is the winning distances and the number of times they have won at that distance 1(1000) 1(1200) 1(1300) 1(1450) 1(1550)

In a second column I have the distance of todays race 1000

In a third column I would like have a yes or no for the following. The horses winning distance range from the above data is 1000-1550 and it is contesting a 1000m race so that would be a yes as it fits within the the horses winning distance range. Of course if todays race was 1800m it would be a no.

I do have a column that JFC helped me with which could be used if it is easier which just has the winning distance range.



Thanks
Twodogs

jfc 7th August 2006 03:52 PM

Quote:
Originally Posted by Twodogs
Good Afternoon

Can anyone help with following? I have searched for an answer but it is beyond my knowledge unfortunately.

I have this data in one column which is the winning distances and the number of times they have won at that distance 1(1000) 1(1200) 1(1300) 1(1450) 1(1550)

In a second column I have the distance of todays race 1000

In a third column I would like have a yes or no for the following. The horses winning distance range from the above data is 1000-1550 and it is contesting a 1000m race so that would be a yes as it fits within the the horses winning distance range. Of course if todays race was 1800m it would be a no.

I do have a column that JFC helped me with which could be used if it is easier which just has the winning distance range.



Thanks
Twodogs



TwoDogs,

Originally you asked for something to produce a column like :

1300-3200

But that is not very useful.

Instead you probably need to get the 1300 alone in one column and 3200 in the next.

So try and do that by pulling apart that long-winded answer I gave you.

Then if

B = today's distance
C = minimum winning distance
D = maximum winning distance

Enter this into E

=IF(AND(B1>=C1,B1<=D1),"yes","no")

Twodogs 7th August 2006 04:09 PM

Thanks JFC

I will give it a shot and see how I go although I must admit to not fully understanding the original formula you gave me. Works a treat all the same!!!

Twodogs

Twodogs 7th August 2006 05:58 PM

Hi JFC

Worked it out. For the min dist

=IF(LEN(A2)>3,CONCATENATE(SUBSTITUTE(MID(A2,1+FIND("(",A2),4),")","")," "),"0")

and max dist

=IF(LEN(A2)>3,CONCATENATE(SUBSTITUTE(LEFT(RIGHT(A2,5),4),"(","")),"0")

Now when I apply =IF(AND(B1>=C1,B1<=D1),"yes","no") I get no for all results but if I remove the formulas ( copy and paste special values only) I get yes and no where applicable. JFC what do I need to do so I don't have to remove the formulas from the min and max dist columns?

Twodogs


All times are GMT +10. The time now is 06:16 PM.

Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.