Formatting Issues

How to Change Font Color for Positive and Negative Numbers in Excel

Maira MehtabMaira Mehtab Nov 11, 2026 869 views

Question details

Change only the font color of positive and negative numbers without applying a cell background color.

How to Change Font Color for Positive and Negative Numbers in Excel
Product
Excel
Device & OS
not provided
Scenario
Formatting numerical data to visually distinguish between positive and negative values cleanly.
Observed behavior
Needs to apply font-color specific styling to numbers based on their mathematical sign while keeping the cell fill transparent or unchanged.
Before you start

Select the specific range of cells containing the numbers you want to format before applying custom number rules or conditional formatting.

Solution 1Recommended

Use a Custom Number Format

Applying a custom number format is the most efficient way to change text color based on a value's sign without affecting cell backgrounds.

Excel allows you to define up to four sections of formatting codes separated by semicolons: Positive; Negative; Zero; Text. By specifying a color name in square brackets at the start of a section, you can alter the font color dynamically.

1
Select the target cells

Highlight the range of cells containing the positive and negative numbers you wish to format.

2
Open Format Cells dialog

Right-click the selected cells and choose Format Cells from the context menu, or press Ctrl+1 on your keyboard.

3
Navigate to Custom format

In the Number tab, select Custom from the Category list on the left side.

4
Enter the format code

In the Type input box, enter [Black]0;[Red]-0 for whole numbers, or [Black]0.00;[Red]-0.00 for decimals. Click OK to apply.

Use a Custom Number Format
Tip: You can use other standard color names like [Blue], [Green], or [Magenta] inside the brackets depending on your visual preference.
Format Data Easily

Format Numbers Quickly with WPS Spreadsheet

WPS Spreadsheet provides intuitive tools for custom number formatting and conditional formatting, allowing you to easily manage font colors without altering cell backgrounds.

  1. 1. Select your data: Open your workbook in WPS Spreadsheet and highlight the cells containing the numbers.
  2. 2. Access Format Cells: Right-click the selected area and choose Format Cells, or use the Ctrl+1 keyboard shortcut.
  3. 3. Apply custom format: Navigate to the Custom category under the Number tab, input [Black]0;[Red]-0 in the Type box, and click OK to instantly apply the colors.
Fully compatible with Microsoft Excel formats (.xlsx, .xls)Intuitive and easy-to-use custom number formatting interfaceLightweight software with fast performance for large datasets
microsoft office alternative - wps office

Frequently Asked Questions

How do I add green for positive and red for negative numbers?

You can use the custom number format code [Green]0;[Red]-0. This instructs the spreadsheet to display any number greater than zero in green, and any number less than zero in red.

Can I format zero values with a different color?

Yes, custom number formats support up to four sections (Positive;Negative;Zero;Text). For example, using [Green]0;[Red]-0;[Blue]0 will make positive numbers green, negative numbers red, and exact zero values blue.

Why does my conditional formatting change the cell fill color?

By default, preset conditional formatting options (like 'Light Red Fill with Dark Red Text') apply a background fill. To avoid this, select 'Custom Format' when setting up the rule and only adjust the settings on the 'Font' tab, leaving the 'Fill' tab blank.

Will applying custom number formats change the actual cell value?

No, custom number formats only change how the data is visually displayed on the screen and in prints. The underlying mathematical value remains exactly the same and can be used normally in formulas and calculations.