Formatting Issues

How to Format Fraction and Whole-Number Fonts Differently in Excel

Phi Hung VoPhi Hung Vo Nov 4, 2026 869 views

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.

How to Format Fraction and Whole-Number Fonts Differently in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Format the cell as text

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.

2
Select the specific characters

Double-click the cell or press F2 to enter edit mode, then use your cursor to highlight just the fraction portion of the text.

3
Apply different formatting

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.

Convert to Text and Format Individually
Calculation Limitation: Text values are ignored in SUM and other math formulas. Use this method strictly for presentation purposes.

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. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your existing spreadsheet.
  2. 2. Convert the number to text: Prefix your mixed number with an apostrophe to treat it as a text string.
  3. 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.
Fully compatible with Microsoft Excel (.xlsx) formats and formulasRich text formatting capabilities within individual cells for easy fraction stylingFree to download and incredibly lightweight on system resourcesFamiliar tabbed interface ensures a seamless migration
microsoft office alternative - wps office

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.