How to Show an Equals Sign for Zero with a Custom Excel Number Format
Question details
The user wants to format numbers in a spreadsheet so that positive percentages show green up arrows, negative percentages show red down arrows, and zero values display as an equals sign.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Creating visually distinct financial or performance reports using custom number formatting to indicate increases, decreases, and stagnant values.
- Observed behavior
- The user needs to implement a custom formatting rule to display visual indicators (arrows and equals signs) and specific colors based on the cell's numeric value.
Highlight the cells or range containing the percentage values you want to format before applying the custom number rule.
Apply a Three-Section Custom Number Format
Use the custom formatting feature to define specific displays for positive, negative, and zero values in a single formatting rule.
Custom number formats follow a specific structure consisting of up to four sections separated by semicolons: [Positive Format];[Negative Format];[Zero Format];[Text Format]. By leveraging this structure, you can assign colors and symbols to each state without relying on complex Conditional Formatting rules.
Highlight all the cells containing the percentage or numeric values you wish to format.
Right-click the selected cells and choose "Format Cells" from the context menu, or simply press the Ctrl + 1 shortcut on your keyboard.
In the Format Cells window, go to the "Number" tab and select "Custom" from the Category list on the left.
In the "Type" text box, enter the following three-section code: [Color10] 0% ↑;[Red] 0% ↓;"="
Click "OK" to apply the formatting. Your positive numbers will now show a green up arrow, negative numbers a red down arrow, and zero values will display as an equals sign.

Format Numbers with Custom Symbols in WPS Spreadsheet
WPS Spreadsheet fully supports advanced custom number formatting, allowing you to effortlessly add visual indicators like directional arrows and text symbols to your data reports without using formulas.
- 1. Open your spreadsheet: Launch WPS Spreadsheet and open the workbook containing your dataset.
- 2. Select your data: Highlight the data range you want to format with visual indicators.
- 3. Open Format Cells: Right-click the selection and choose 'Format Cells', or press Ctrl + 1.
- 4. Apply custom format: Under the Number tab, click 'Custom' and paste the formatting code: [Color10] 0% ↑;[Red] 0% ↓;"="

Frequently Asked Questions
How do I type the up and down arrow symbols in my formatting code?
You can insert them using the 'Symbol' menu under the Insert tab, copy and paste them from a web page, or use numeric keypad shortcuts: hold 'Alt' and press '24' for an up arrow (↑), and 'Alt' + '25' for a down arrow (↓).
Why is my custom number format showing an error?
Ensure that you are separating the positive, negative, and zero sections with semicolons (;). Also, verify that any text characters or symbols you want to display, like the equals sign, are enclosed in double quotation marks (e.g., "=").
Can I use different colors in my custom number format?
Yes, you can use basic named colors enclosed in brackets like [Red], [Blue], or [Green], or you can use the [ColorN] index where N is a number from 1 to 56 representing different shades from the color palette.
Is conditional formatting better than custom number formats for this task?
Custom number formatting is typically faster, simpler to set up, and uses less processing power than conditional formatting for basic color and symbol changes based solely on whether a value is positive, negative, or zero.




