View Full Version : Excel help again!!!

Twodogs

12th July 2006, 07:35 PM

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

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

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

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

jfc

7th August 2006, 06:19 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

You seem to be getting there

My guess is the results you are getting are text. They need to be numbers.

So replace the CONCATENATE (which you no longer actually need) with VALUE and the rightmost "0" with 0 and then you should have numbers

Twodogs

7th August 2006, 06:50 PM

Okay no problems on the max distance doing what you suggested but on the min distance it tells me there are too many arguments. Not sure what to eliminate.

I have attached my progress

Twodogs

jfc

7th August 2006, 06:56 PM

Okay no problems on the max distance doing what you suggested but on the min distance it tells me there are too many arguments. Not sure what to eliminate.

I have attached my progress

Twodogs

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

Twodogs

7th August 2006, 07:04 PM

Thanks JFC

That does it!!! How come it changes from Arial to Verdana font once I insert your formula?? Just interested if there is a reason.

Twodogs

jfc

7th August 2006, 07:33 PM

Thanks JFC

That does it!!! How come it changes from Arial to Verdana font once I insert your formula?? Just interested if there is a reason.

Twodogs

Good.

Dunno about your fonts.

Maybe your format has Arial for Text and Verdana for Numbers.

But that's just a guess.

Twodogs

7th August 2006, 07:38 PM

No problems JFC

Thanks for your help once again

Much Appreciated

Twodogs

vBulletin v3.0.3, Copyright ©2000-2024, Jelsoft Enterprises Ltd.