Smartgambler
Pro-Punter

Go Back   OZmium Sports Betting and Horse Racing Forums > Public Forums > Horse Race Betting Systems
User Name
Password
Register FAQ Search Today's Posts Mark all topics as read

To advertise on these
forums, e-mail us.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th January 2006, 06:18 PM
La Mer La Mer is offline
Member
 
Join Date: Jan 1970
Posts: 578
Default Excel Help

I'm sure that this question has been asked before on this forum, but I want to convert text into numbers, e.g. I have SP data that is stored as text such as 100/1, 20/1 etc which I wish to convert to a numeric format.

Can anyone help please.
Reply With Quote
  #2  
Old 20th January 2006, 10:11 AM
davez davez is offline
Member
 
Join Date: Jan 1970
Posts: 301
Default

im sure there are other ways to do this but this seems to do ok
Attached Files
File Type: xls text_odds_convert.xls (13.5 KB, 443 views)
Reply With Quote
  #3  
Old 20th January 2006, 12:17 PM
davez davez is offline
Member
 
Join Date: Jan 1970
Posts: 301
Default

ive corrected this file to show the total return
Attached Files
File Type: xls text_odds_convert_2.xls (13.5 KB, 495 views)
Reply With Quote
  #4  
Old 20th January 2006, 12:50 PM
La Mer La Mer is offline
Member
 
Join Date: Jan 1970
Posts: 578
Default

Quote:
Originally Posted by davez
ive corrected this file to show the total return


Thanks Davez, Didn't quite work out Ok due to prices like 4/5F, 4/11F and 3/1E etc but I was able to work around those. Appreciated.
Reply With Quote
  #5  
Old 20th January 2006, 03:43 PM
La Mer La Mer is offline
Member
 
Join Date: Jan 1970
Posts: 578
Default

Quote:
Originally Posted by La Mer
Thanks Davez, Didn't quite work out Ok due to prices like 4/5F, 4/11F and 3/1E etc but I was able to work around those. Appreciated.


Just as an aside Davez, how would go about handling odds which are a mixture of numbers & letters such as 4/5F or 4/11F - can they be turned from text into numeric?
Reply With Quote
  #6  
Old 20th January 2006, 11:07 PM
Chrome Prince Chrome Prince is offline
Member
 
Join Date: Jan 1970
Posts: 4,366
Default

Hi La Mer,

Have you tried using related access tables?

I have all the values and corresponding decimal equivalents in one table, then import my excel files into a related table.

The query then substitutes the old value to the decimal odds.
__________________
RaceCensus - powerful system testing software.
Now with over 400,000 Metropolitan, Provincial and Country races!
http://www.propun.com.au/horse_raci...ng_systems.html
*RaceCensus now updated to 30/04/2024
Video overview of RaceCensus here:
http://www.youtube.com/watch?v=W821YP_b0Pg
Reply With Quote
  #7  
Old 21st January 2006, 07:22 AM
La Mer La Mer is offline
Member
 
Join Date: Jan 1970
Posts: 578
Default

Quote:
Originally Posted by Chrome Prince
Hi La Mer,

Have you tried using related access tables?

I have all the values and corresponding decimal equivalents in one table, then import my excel files into a related table.

The query then substitutes the old value to the decimal odds.


Thanks for the advice Chrome - one problem, I don't have Access but will keep the information you stated above in the back of my mind for future reference.
Reply With Quote
  #8  
Old 21st January 2006, 07:59 AM
jfc jfc is offline
Member
 
Join Date: Jan 1970
Location: Sydney
Posts: 402
Default

Quote:
Originally Posted by La Mer
Just as an aside Davez, how would go about handling odds which are a mixture of numbers & letters such as 4/5F or 4/11F - can they be turned from text into numeric?


A1 = 4/11f (say)
B1 =IF(RIGHT(A1,1)>"9",LEFT(A1,LEN(A1)-1),A1)
C1 =FIND("/",B1)
D1 =LEFT(B1,C1-1)/RIGHT(B1,LEN(B1)-C1)+1


Hardly my bag, but above should work for stated conditions.

B1 strips off any 1 non-numeric on right
Reply With Quote
  #9  
Old 21st January 2006, 11:19 AM
davez davez is offline
Member
 
Join Date: Jan 1970
Posts: 301
Wink

looks like jfc gets the chocolates
Reply With Quote
  #10  
Old 21st January 2006, 11:19 AM
Eddie Woloschek Eddie Woloschek is offline
Banned
 
Join Date: Mar 2005
Posts: 1
Default

Quote:
Originally Posted by La Mer
I'm sure that this question has been asked before on this forum, but I want to convert text into numbers, e.g. I have SP data that is stored as text such as 100/1, 20/1 etc which I wish to convert to a numeric format.

Can anyone help please.

In Excel you can do a find and replace. Find "/1" and replace it with nothing.

Then run another column with a formula (format cell to currency) that adds one to the number on left.

Therefore 100/1 has become 100 then in next column $101.00

For prices such as 5/2, 7/4 etc, you figure these manually, do a sort and do a copy and a mass copy into those cells.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump



All times are GMT +10. The time now is 07:59 PM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2008 OZmium Pty. Ltd. All rights reserved . ACN 091184655