I should have been more clear. The ratio will not always
be my example nor will it end with :1. There is another
ratio with comes to 22% however I want to show 9:2.
...
If you have values like 5% or 22(.222...??)% that you want to format as ratios
like 20:1 and 9:2, then you need to specify what you want more precisely. 22%
as-is would need to be inverted and the result formatted as ?/?, then the /
changed to : as a text operation. Meaning you need to restrict your fractions to
one decimal place in the denominator.
For example, TEXT(1/22%,"?/????") gives 50/11 rather than 9/2.
If you always want one decimal place in the right hand side of ':', try
=RIGHT(TEXT(x,"?/?"),1)&":"&LEFT(TEXT(x,"?/?"),LEN(TEXT(x,"?/?"))-2)
The reason you can't just use =SUBSTITUTE(TEXT(1/x,"?/?"),"/",":") is that
you're subject to floating point rounding error. If you have 22% exactly, or
0.22, entered in a cell named x, then TEXT(1/x,"?/?") gives 41/9 even though
TEXT(x,"?/?") gives 2/9.