| Free £25 Bet! | Free £25 Bet! |

In association with Sports-Punter Free Bets Odds Comparison BetHelp Limso
We are the Official Forum of FreeBetting.net & FCBet.com
| Sports News | Sports Stats | Live Scores | OddsChecker | Place Bets | Suggest a Site |
| |||||||
| Tech & Gaming Forum This is the place for all your technical related questions about computers, programs or whatever... |
| Free £25 Bet at Jaxx! |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Dedicated Punter ![]() ![]() ![]() Join Date: 18 Dec 2006 Location: Greece Age: 39
Posts: 250
| Now its my turn again. I copy-paste from RPS the table with the winners of a course and at the table there is a column with their SP. They have the English format ie 7/1 , 10/1 , 15/2. 1. When copied into excel they are transformed into dates, ie 7/1 to 7-Jan, 10/1 to 10-Jan. How can avoid this? I want the 7/1 odds to be recorded as 8.00 odds etc. I have the feeling that it would be difficult. 2. The 100/1 or 66/1 odds are recorded as 100/1 and 66/1 but as text?Defently not as number. How can i change this? Thanks, Dices Last edited by Dices; 06-08-2007 at 18:56. |
| | |
| | #2 (permalink) |
| God Punter ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: 18 Jun 2005
Posts: 34,028
| 1) If you paste special, can you define the format? 2) "100/1" isn't a number - it cannot be stored as a number - you'll need to import it as text I think, then make transformations in another column into the number you want (whtat number would you want stored for "100/1"? 100? |
| | |
| | #3 (permalink) | ||||||||||||
| Dedicated Punter ![]() ![]() ![]() Join Date: 18 Dec 2006 Location: Greece Age: 39
Posts: 250
| 1. I can special copy as html wich gives me the same problem or special copy as text but at this case i dont get a table of data but a column of data and i cant extract what i want. The 100/1 odds i want it to be recoded as 101.00 odds (European odds ->your winnings plus your stake 100+1=101). I maybe can do this using some replace ..... This is what i get with special copy as text:
Last edited by Dices; 06-08-2007 at 19:16. | ||||||||||||
| | |
| | #4 (permalink) |
| Junior Punter ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: 30 Oct 2004
Posts: 12,260
| I hate software that "thinks" it knows what you want! I don't use Microsoft Office programs unless I have no choice, but I once had to write something in Word that had a serial number like 17653246TH in it. It took me ages to figure out how to tell it I didn't want the "th" as a superscript! And don't get me started on spell-checkers ... ![]() |
| | |
| | #5 (permalink) |
| Disconnected Excel Punter ![]() ![]() ![]() ![]() ![]() ![]() Join Date: 19 Jun 2005 Age: 33
Posts: 1,890
| I had this problem when trying to copy massey results in a table. Copy the data and paste into word select all, copy the data from word and pastespecial richtext format select all, copy, then goto excel format the columns as text, then pastespecial as text (I have a spare sheet i won't use just for this - formatted as text) Note - you will still need to format any column that the 7/1 is going into as text. I put shortcuts for macros in word and excel for this This is for Word (i store it in the normal.doc so it is available on opening word) Code: Sub web2excel()
'
' web2excel Macro
'
Application.ScreenUpdating = False
Selection.PasteAndFormat (wdPasteDefault)
Selection.WholeStory
Selection.Copy
Selection.PasteSpecial datatype:=wdPasteRTF
Selection.WholeStory
Selection.Copy
Application.ScreenUpdating = True
End Sub Code: Sub PasteasText() ' ActiveSheet.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:= _ False Selection.Copy End Sub Last edited by georgej; 06-08-2007 at 20:31. |
| | |
| | #6 (permalink) |
| Dedicated Punter ![]() ![]() ![]() Join Date: 18 Dec 2006 Location: Greece Age: 39
Posts: 250
| Thanks for the replies, for the moment i'm trying some ideas of my own trying to figure it out using only formulas and not macros. If i find anything i will let you know. Thanks again. |
| | |
| | #7 (permalink) |
| Disconnected Excel Punter ![]() ![]() ![]() ![]() ![]() ![]() Join Date: 19 Jun 2005 Age: 33
Posts: 1,890
| Sorry Dices - didn't notice i replied to only part of your query. To retain the formatting it is the copy, pastespecial etc in word twice, then excel To convert from fraction odds to decimal, in the next cell i use a find "/" formula. I'll look it out now. oops - wrong formula - that was for position - only gave figure before the "/" =MID(H13,1,FIND("/",H13)-1)*1/RIGHT(H13,LEN(H13)-LEN(MID(H13,1,FIND("/",H13))))*1+1 with H13 being 7/1 Last edited by georgej; 06-08-2007 at 21:06. |
| | |
| | #8 (permalink) |
| Dedicated Punter ![]() ![]() ![]() Join Date: 18 Dec 2006 Location: Greece Age: 39
Posts: 250
| Converting fractional to demical: =LEFT(D5;SEARCH("/";D5)-1)/RIGHT(D5;SEARCH("/";D5)-1)+1 edit: it's corect if it converts two sincle numbers ie 5/4 but not a 33/1 ?????? EDIT: totaly wrong formula Last edited by Dices; 06-08-2007 at 21:20. |
| | |
| | #9 (permalink) |
| Disconnected Excel Punter ![]() ![]() ![]() ![]() ![]() ![]() Join Date: 19 Jun 2005 Age: 33
Posts: 1,890
| It seems to be assuming that the length is the same on both sides. You will need to take into account the length of the original string. Edit: Never used search before in a formula, so good to see it can cut it down a bit. Last edited by georgej; 06-08-2007 at 21:17. |
| | |
| | #10 (permalink) |
| Disconnected Excel Punter ![]() ![]() ![]() ![]() ![]() ![]() Join Date: 19 Jun 2005 Age: 33
Posts: 1,890
| What's wrong with the formula? You were missing only one last small piece. Less than 6 characters!!! Was going to give you the satisfaction of completing it - i think it's a pretty nifty formula myself. |
| | |
| | #12 (permalink) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Dedicated Punter ![]() ![]() ![]() Join Date: 18 Dec 2006 Location: Greece Age: 39
Posts: 250
| OK, here it is. Column with SP odds from RPS (or elsewere) is copied at column B. It contains fractional odds 7/1, 5/4 etc ,allways a number like 3/1F (the fav) and sometimes a number like 4/1J (the join fav). At the below table the two above letters (F & J) are removed. At the below table the Column J (Year) is not required. I think it will be helpfull to some (at least,I will use it) Please, post your coments and any impovements.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||