How to Change Font Color for Positive and Negative Numbers in Excel
Question details
Change only the font color of positive and negative numbers without applying a cell background color.

- 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.
Select the specific range of cells containing the numbers you want to format before applying custom number rules or conditional formatting.
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.
Highlight the range of cells containing the positive and negative numbers you wish to format.
Right-click the selected cells and choose Format Cells from the context menu, or press Ctrl+1 on your keyboard.
In the Number tab, select Custom from the Category list on the left side.
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.

Apply Conditional Formatting Rules
Use Excel's conditional formatting feature to create explicit rules for positive and negative numbers if you need more complex criteria.
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. Select your data: Open your workbook in WPS Spreadsheet and highlight the cells containing the numbers.
- 2. Access Format Cells: Right-click the selected area and choose Format Cells, or use the Ctrl+1 keyboard shortcut.
- 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.

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.




