How to Format Fraction and Whole-Number Fonts Differently in Excel
Question details
The user wants to apply different font formatting, such as size or color, to the whole number and the fraction part of a single numerical value independently.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Formatting numeric values that contain both whole numbers and fractions to improve readability or visual presentation.
- Observed behavior
- Excel does not normally allow formatting parts of a numeric value independently because the whole number and fraction are stored and treated as a single mathematical entity.
Determine whether you need the fraction to retain its mathematical value for calculations, as this will dictate whether you should format it as text or use separate columns.
Convert to Text and Format Individually
By converting the number to text, you can highlight specific characters and apply different font styles within the same cell.
This is the best method if you only need the fraction for visual display. Note that once a number is converted to text, it cannot be used in standard mathematical calculations.
Type an apostrophe (') before entering your whole number and fraction (e.g., '1 1/2), or change the cell format to Text via the Home tab before typing.
Double-click the cell or press F2 to enter edit mode, then use your cursor to highlight just the fraction portion of the text.
With the fraction highlighted, go to the Font section on the Home tab to change the size, color, or style independently of the whole number.

Place Whole Numbers and Fractions in Separate Cells
Keep the numerical value intact for formulas by placing the whole number in one cell and the fraction in an adjacent cell.
Easily Format Mixed Numbers and Text with WPS Spreadsheet
WPS Spreadsheet provides a highly compatible and intuitive interface for managing complex data formats. You can easily manipulate text strings and numbers, utilizing the same workarounds as Microsoft Excel without a steep learning curve.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your existing spreadsheet.
- 2. Convert the number to text: Prefix your mixed number with an apostrophe to treat it as a text string.
- 3. Format the partial text: Double-click the cell, highlight only the fraction portion, and adjust the font size or color using the Home tab.

Frequently Asked Questions
Why can't I format part of a number in Excel normally?
Excel treats numeric entries as single underlying values for calculation purposes. To maintain mathematical integrity, partial formatting within a single cell is disabled unless the entry is classified as text.
Can I use custom number formats to change the font color of just the fraction?
No. Custom number formats can change the color of the entire value based on specific conditions (like positive or negative), but they cannot apply different colors or sizes to specific parts of the same numeric value.
Will converting my fractions to text break my formulas?
Yes, standard mathematical formulas like SUM or AVERAGE generally ignore cells formatted as text. If you need to perform calculations with these values, it is better to separate the whole numbers and fractions into different cells.




