Excel usually converts fractions automatically when you enter a date or text value. In this guide, we’re going to show you how to display fractions in Excel.
Using number formatting to display fractions
Excel stores and calculates any numerical value as decimals. However, you can alter how Excel displays a number. Common examples are displaying currency symbols or deciding the number of decimal digits. The same is true for fractional numbers. You can display any number as a fraction by changing its number formatting.
Follow the steps to apply a fraction number formatting:
- Select the cells where you want to display fractions.
- Press Ctrl + 1 or use the right-click menu to open Format Cells.
- Activate the tab Number.
- Select Fraction in Category list to see fraction options on the right.
- Select the option you would like to use.
- Click OK to apply the number formatting.
Here is how Excel displays fractions up to two digits:
Excel has 9 predefined fraction formatting options.
If these predefined options do not cover your scenarios, you can define your own custom number formatting.
You can add custom number formatting options in Excel. Thus, you can set any number as a denominator or create fractions where the top number (numerator) is bigger than the bottom (denominator), e.g., 3/2.
To apply a custom fraction number format, open the Format Cells dialog. This time select Custom in the Category list. You need to enter the custom format code into the Type box.
In our example we defined a mixed fraction (fraction with whole number) where the denominator is 256. The dash character (#) represents the whole number, you can use a question mark (?) to define the maximum number of digits of the numerator and the denominator.
Here is a cheat sheet with examples:
|# ?/?||A mixed fraction up to single digit denominator.||
|# ??/??||A mixed fraction up to double digit denominator.||
|???/???||An improper fraction up to 3 digits.||
|# ??/256||A mixed fraction with fixed denominator 256.||
Using fractions in text
You can set a cell’s formatting to show fraction, but the number will lose its formatting when merged with a text. To prevent this, you need to apply formatting with the TEXT function. The TEXT function simply applies the given number formatting to the specified number.
The format argument accepts the string you can use for custom number formatting.