Formatting Issues

How to Create Custom Number Formatting with Arrows and Colors in Excel

Adam DavisAdam Davis Nov 11, 2026 869 views

Question details

The user wants to format numbers so that they automatically display specific colors and arrow indicators based on the cell's value.

How to Apply Custom Number Formatting with Arrows and Colors in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target cells

Highlight the range of cells containing the numbers you want to format.

2
Open the Format Cells dialog

Right-click the selected cells and choose 'Format Cells', or press the 'Ctrl + 1' keyboard shortcut.

3
Navigate to the Custom category

In the Format Cells dialog, click on the 'Number' tab, then select 'Custom' from the list on the left side.

4
Enter the custom format code

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

5
Apply and test

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.

Apply a Custom Number Format Code
Tip: You can insert arrow symbols directly using keyboard shortcuts. Hold down the 'Alt' key and type '24' on the numeric keypad for an up arrow (↑), or 'Alt + 25' for a down arrow (↓).
WPS Spreadsheet Solution

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. 1. Highlight Your Data: Open your worksheet in WPS Spreadsheet and select the cells you wish to format.
  2. 2. Open Format Cells: Right-click the selection and click 'Format Cells' (or simply press Ctrl+1 on your keyboard).
  3. 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. 4. Confirm: Click 'OK'. Your numbers will immediately reflect the specified colors and directional arrows based on their values.
Fully compatible with Microsoft Excel custom number formats and conditional formatting.Built-in directional icon sets for instant, code-free data visualization.Lightweight, fast, and completely free to use for daily tasks.
microsoft office alternative - wps office

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.