If you want to ensure that a number is always displayed with a denominator of 4, then use the custom format:
?/4
If you want something else, be more specific.
Thank you. I understand that, internally, the value is stored as a float. What I am saying is that, in Excel 365, the specified custom format is ignored.
Try it. Format an empty cell it as you suggest. Then enter 4/4 and watch as 1 is
displayed. Enter 8/4 and watch as 2 is displayed. There is no way to force the value to be displayed as a fraction if it reduces to an integer.
I need to be able to use the value in calculations, so formatting as text is a bother (one has to give the cell a name and do the calculation when defining the name).
I consider this inconsistent behavior (display the entered value as a fraction
unless it reduces to an integer) to be a bug...either in the code or in the functional specification. Users want consistent behavior and do not want to have to figure out workarounds to obtain results that they reasonably expect to get.
Thanks again.