How to Create Custom Number Formatting with Arrows and Colors in Excel
Question details
The user wants to format numbers so that they automatically display specific colors and arrow indicators based on the cell's value.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Creating visually distinct numeric data representations for financial reports, scorecards, or dashboards.
- Observed behavior
- Numbers need to conditionally change text color and append symbols (like upward or downward arrows) to reflect positive or negative status.
Ensure you have the specific arrow symbols you wish to use (such as ↑ or ↓) copied to your clipboard beforehand, as you will need to paste them directly into the custom formatting text box.
Apply a Custom Number Format Code
Directly apply a custom format code to dictate how positive, negative, and zero values appear, including specific text colors and arrow symbols.
Excel custom formatting follows a specific syntax divided by semicolons: [Positive Format]; [Negative Format]; [Zero Format]; [Text Format]. By adding color names inside brackets and pasting arrow symbols into these sections, you can achieve automatic dynamic formatting without creating complex rules.
Highlight the range of cells containing the numbers you want to format.
Right-click the selected cells and choose 'Format Cells', or press the 'Ctrl + 1' keyboard shortcut.
In the Format Cells dialog, click on the 'Number' tab, then select 'Custom' from the list on the left side.
In the 'Type' text box, enter your desired format code. For example, to make positive numbers green with an up arrow and negative numbers red with a down arrow, type: [Green]↑0;[Red]↓0;0
Click 'OK' to apply the formatting. Type a positive number and a negative number into the formatted cells to verify that the colors and arrows change accordingly.

Use Conditional Formatting with Built-in Icon Sets
Utilize Excel's built-in conditional formatting icon sets as an easier, code-free alternative to adding colored directional arrows.
Format Numbers with Colors and Arrows Easily in WPS Office
WPS Spreadsheet offers powerful and intuitive formatting tools. You can seamlessly utilize standard Microsoft Excel custom format codes or apply instant conditional formatting icon sets to make your data stand out.
- 1. Highlight Your Data: Open your worksheet in WPS Spreadsheet and select the cells you wish to format.
- 2. Open Format Cells: Right-click the selection and click 'Format Cells' (or simply press Ctrl+1 on your keyboard).
- 3. Apply Custom Format: Go to the 'Number' tab, click 'Custom', and type your syntax (e.g., [Green]↑0;[Red]↓0;0) into the Type box.
- 4. Confirm: Click 'OK'. Your numbers will immediately reflect the specified colors and directional arrows based on their values.

Frequently Asked Questions
How do I type the up and down arrow symbols in my spreadsheet?
You can insert them using 'Alt' codes on a numeric keypad: press Alt+24 for an up arrow (↑) and Alt+25 for a down arrow (↓). Alternatively, you can go to the 'Insert' tab, click 'Symbol', find the arrows, insert them into a blank cell, and then copy them to use in your format code.
Can I use colors other than red and green in my custom number format?
Yes. Spreadsheets support several standard colors enclosed in square brackets. You can use [Black], [White], [Red], [Green], [Blue], [Yellow], [Magenta], or [Cyan]. The color name must be placed at the beginning of the format section.
Why is my custom number format displaying the formatting code as plain text?
This usually happens if the cell is formatted as 'Text' before you enter the custom format, or if there is a syntax error such as missing semicolons. Ensure you are applying the code via the 'Custom' category in the Format Cells dialog, and that the cell is not locked into Text format.
How can I hide zero values while still showing colored arrows for positive and negative numbers?
To hide zeros, leave the third section of your custom format code empty. For example, using the code '[Green]↑0;[Red]↓0;' (ending with a semicolon and nothing after it) will format positive and negative numbers but leave cells containing exactly zero entirely blank.




