Gambling Decimals to Fractions - Surely simple in Excel? Anyone able to help?

Orange777

New Member
Joined
Jul 4, 2015
Messages
16
Hi,

I am a Newbie so please let me know if I break any rules! I have spent an hour looking at how to convert decimals into horse racing fraction . On my Excel 2013 I can use the function button but they are mathematical fractions.

Ideally I need the maths that sits behind this:

Betting Zone | Odds Converter, Fraction Converter, Decimal Converter

I found this formula that does it the other way:

=(VALUE(LEFT(A1,SEARCH("/",A1)-1))/VALUE(MID(A1,SEARCH("/",A1)+1,LEN(A1)-SEARCH("/",A1))))

However the results were wrong so I added a 1 in to give:

=1+(VALUE(LEFT(A1,SEARCH("/",A1)-1))/VALUE(MID(A1,SEARCH("/",A1)+1,LEN(A1)-SEARCH("/",A1))))

This now works for me.

Any help would be great. Seems to be the holy grail of questions. I have looked all over!

I am not great with VBA - can load it, but in practical terms I need to be able to type in cell F3 (for example) 3.25 and it to tell convert into next cell that it is equal to 9/4

THANK YOU!!!!!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
This is how I do it. You would add +1 to the end of the formula for your format style.

IF(AND(LEN(C11)=3,MID(C11,2,1)="/"),MID(C11,1,1)/MID(C11,3,1),C11)

<colgroup><col width="90"></colgroup><tbody>
</tbody>


<colgroup><col width="90"></colgroup><tbody>
</tbody>



-- removed inline image ---
 
Last edited:
Upvote 0
FormR's suggestion:

Row\Col
A​
B​
C​
D​
1​
2​
1/1​
B1: =A1-1Format of B1: ??/??
2​
2.25​
5/4​
3​
2.5​
3/2​
4​
2.75​
7/4​
5​
3​
2/1​
6​
3.25​
9/4​
7​
3.5​
5/2​
8​
3.75​
11/4​
9​
4​
3/1​
10​
4.25​
13/4​
11​
4.5​
7/2​
12​
4.75​
15/4​
13​
5​
4/1​
 
Upvote 0
This is how I do it. You would add +1 to the end of the formula for your format style.

IF(AND(LEN(C11)=3,MID(C11,2,1)="/"),MID(C11,1,1)/MID(C11,3,1),C11)

<tbody>
</tbody>

<tbody>
</tbody>



-- removed inline image ---

Thank you TheRinger! Another option to try! Appreciated!
 
Upvote 0
After rereading what you wanted I think this is what your looking for:

=(LEFT(A1,(FIND("/",A1,1)-1)))/(MID(A1,FIND("/",A1)+1,256))+1
 
Upvote 0
This is the only way I know to do the decimal odds to fractional odds conversion. Of course you would hide the last 3 columns.

horse#Input of decimalVlookup formulaDecimalFractionalProbability %
13.259/432/133.33
23.323/103.121/1032.26
3SCR3.211/531.25
43.211/53.259/430.77
532/13.323/1030.3
=IF(B2,VLOOKUP(B2,$D$6:$E$6,2,TRUE),"SCR")

<tbody>
</tbody>
 
Last edited:
Upvote 0
I really like the solution in this thread but since it does not give me exactly what I am looking for, I will post the alternative I shared elsewhere.

This tries various denominators from 1 to 10 and picks one that seemingly produces something close to a whole number.

=SMALL(IF(ROUND((F3-1)*ROW(A$1:A$10),0)*(ABS(ROUND((F3-1)*ROW(A$1:A$10),3)-ROUND((F3-1)*ROW(A$1:A$10),0))=0)=0,"",ROUND((F3-1)*ROW(A$1:A$10),0)*(ABS(ROUND((F3-1)*ROW(A$1:A$10),3)-ROUND((F3-1)*ROW(A$1:A$10),0))=0)),1)&"/"&MATCH(TRUE,ABS(ROUND((F3-1)*ROW(A$1:A$10),3)-ROUND((F3-1)*ROW(A$1:A$10),0))=0,0)

I could have used the MIN function instead of SMALL, but was playing with a count of zeros (counting them to take the smallest non zero number) but converting the zeros to spaces made things easier.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,681
Members
449,116
Latest member
HypnoFant

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top