Get the Custom Formatting Workbook
Practice all four examples from Part 1 and Part 2, from simple arrows to thresholds. Includes the color code list and the 40,000-row speed test.
How Custom Number Formatting Works
Custom formatting is really easy to use when you understand the rule behind it. Once it clicks, you see all the opportunities to improve the presentation of your reports.
To access Custom Formatting, right-click on any cell, click Format Cells…, and in the window that appears, in the Number tab, go to Custom.
Here’s the rule: a custom format has up to 4 sections, separated by semicolons.
- Positive numbers ;
- Negative numbers ;
- Zeros ;
- Text

In this case, we will just focus on the first three arguments, and ignore text.

The hashtag (#) sign and the 0 sign are basically just placeholders for numbers. The only difference is the hashtag sign is a variable placeholder and 0 is a fixed placeholder.
As an example, let’s say we want to show any positive number that is typed in, shown as ‘plus’ and then a number. The first argument should be as follows:
"plus "#;;;The second argument – formatting the negative number –
"plus "#;"neg "(#);;Negative numbers should be shown in brackets.
Next, how zero values should be formatted.
"plus "#;"neg "(#);"hide";Zero values will show the word hide.
Leave the final – text argument – empty.

Press OK.
Now when I put in a positive number, 2, it shows it as ‘plus 2’.
- -2 shows as ‘neg (2)’
- 0 appears as ‘hide’

Hide Zero Values
Press Ctrl+1, and edit the arguments to say this:
"plus "#;"neg "(#);;Keep the last argument empty.
Now, even though the cell value is 0, it’s not showing anything.
That’s the basics.
NOTE: If you want to add color, they should be added to arguments in this way:
[Red]Show Up and Down Arrows for Deviations

To add up and down arrows, go to Insert > Symbol.
Find them under Font: Arial, Subset: Geometric Shapes.
Insert the Down and Up Arrow out of the way in an unused cell. You will use them later for custom formatting.
Essentially, Custom Formatting is about making numbers appear as whatever you want.
This is why it works incredibly well for showing deviations.
Turn Values into Arrow Symbols
To start, you need numbers, so subtract PY from Actual.
Cell D6 =B6-C6
Highlight Cell D6 to D17, press F2, and Ctrl+Enter.
Copy the arrow symbols you previously inserted.
Select Cells D6-D17 – where you want to apply the custom formatting – and press Ctrl+1.
Go to Custom, and in General, for the first argument – how positive numbers are formatted – paste the arrow symbols.
"▲";"▼";Positive values will appear as ▲, negative as ▼, and zero values as nothing.
Press OK, and the values will appear as arrow symbols.

Color the Arrows Green and Red
With the values selected, press Ctrl+1, and edit the arguments to say this:
[Green]"▲";[Red]"▼";Excel’s colors are language-sensitive, so you’ll have to translate [green], [red], etc. to your language.
Press OK, and the arrows now appear like this:

However, I find the green used here too bright.
The full list of color numbers is in the free workbook. For the other format rules, see Microsoft’s custom number format guidelines.

10 is gentler on the eye.
Highlight D6-D17 once more, and press Ctrl+1.
Edit the arguments to say:
[Color10]"▲";[Red]"▼";Press OK. Remember it’s language sensitive, so translate ‘color’ to your language.
The positive arrows have now changed to the new green.
Show Percentage Change with Arrows
In addition to showing the deviation as arrows (as in the previous chapter), now we’re going to show percentages too.

To get the percentages, divide Actual by PY and subtract 1:
L6 =J6/K6-1Format this as a Percentage. Drag L6 down to L17.
While they are highlighted, press Ctrl+1.
Edit the arguments to say this:
[Color10]0%"▲";[Red]-0%"▼";Press OK.
Now we have deviations shown as arrows and percentages.

Add Space Between the Percentage and the Arrow
Highlight Cell L6 to L17, press Ctrl+1.
Edit the arguments, inserting two spaces before each arrow symbol.
[Color10]0%" ▲";[Red]-0%" ▼";Press OK.
This has added two spaces between % and the arrow symbol.
However, if you want this space to expand as you increase the width of the cell, edit the arguments to say this:
[Color10]0%* "▲";[Red]-0%* "▼";We’ve added a *, followed by a space.
The *, or asterisk, is syntax to repeat whatever follows it until it reaches the edge of the cell.
So this *, followed by a space, repeats the space as the cell’s width increases, so the breathing space is proportional to the width of the cell.

Download the Practice Workbook
Download the Custom Formatting Workbook
All four examples in one file, ready to practice.
Next in Part 2 of this guide, I will show you how to use any symbol of your choice for deviations, and up/down arrows for higher variances.
How to Create and Use Excel Custom Number Formatting walks through more report examples.
Frequently Asked Questions
How do I show up and down arrows in Excel without conditional formatting?
Calculate the difference first. Then select the cells, press Ctrl+1 and choose Custom. Paste an up arrow symbol in the positive section and a down arrow in the negative section, separated by a semicolon. Excel shows the arrow instead of the number.
What are the four sections of a custom number format?
A custom number format can have up to four sections, separated by semicolons. They control positive numbers, negative numbers, zero values and text, in that order. If you use only two sections, the first one covers both positive numbers and zeros.
How do I hide zero values with custom formatting?
Leave the third section empty. For example, the format 0;-0;; shows positive and negative numbers but leaves cells with a zero blank. The zero is still in the cell, so your formulas keep working.
How do I add color to a custom number format?
Put the color name in square brackets at the start of a section, for example [Green] or [Red]. You can also use [Color1] to [Color56] for other colors from the Excel palette. In a non-English version of Excel, type the color name in your language.
Is custom formatting faster than conditional formatting?
In a test on 40,000 rows of data, custom formatting was about three times faster than conditional formatting. It is also quicker to set up, because one format code handles positive, negative and zero values at once.
Does custom formatting change the value in the cell?
No. Custom formatting only changes how the value looks. The cell still holds the original number, so formulas, sorting and filtering use the real value. Select the cell and check the formula bar to see it.
Leila Gharani
Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.








