Excel Triangle Icon Color: How to Set Custom ▲▼ Colors Based on Number Changes

CONTENTS

Excel Triangle Icon Color: How to Set Custom ▲▼ Colors Based on Number Changes

To set the Excel triangle icon color to an exact color you want (such as blue, orange, or gray), using Excel’s Icon Sets (Triangles) alone has limitations. Although you can change the criteria (thresholds), the colors are often limited to a fixed default palette. For this reason, the safest practical approach for fully custom colors is to combine ▲▼ symbols (up/down triangles) with conditional formatting (font color).


Quick Fix (Fastest Solution)

Most Recommended (100% Custom Colors): ▲▼ Symbols + Conditional Formatting

  1. Create an icon column next to the number column (for example, column D).
  2. Use a formula to display ▲ or ▼ in column D (UNICHAR).
  3. Create two conditional formatting rules for column D:
    • For ▲: Set the font color you want.
    • For ▼: Set the font color you want.

Quick Alternative (When Eight Default Colors Are Enough): Custom Number Format

  • If named colors such as [Blue] and [Red] are enough, this is very simple. However, arbitrary RGB colors are not available.

Icon Sets (Easiest): 3 Triangles

  • Icon Sets are quick to apply, but it is difficult to change the colors to a custom RGB value. Use them instead to show ▲ and ▼ based on thresholds, such as above or below 0.

Sample Data (Including Cell References)

The following data assumes you paste it into A1. (Column A: Date; Column B: Value)

Paste Directly into Excel (A1)

Date	Value
2026-01-01	120
2026-01-02	135
2026-01-03	128
2026-01-04	128
2026-01-05	142
2026-01-06	110

Recommended Column Layout

  • Column A: Date
  • Column B: Value
  • Column C: Change (change from the previous row)
  • Column D: Arrow (▲▼ display)
  • Column E (optional): Change% (percentage change)

Method 1 (Recommended): Set Custom Colors with ▲▼ Symbols and Conditional Formatting

This method is the best match when you want to set custom colors for up and down triangles.

Step 1) Create the Change Column in Column C

Enter Change in C1, then enter the following formula in C2 and fill it down.

C2 (leave the first data row blank because there is no previous row to compare)

=IF(B2="","",IF(ROW()=2,"",B2-B1))

Column C now shows the following:

  • Positive: Increase
  • Negative: Decrease
  • 0: No change
  • Blank: No data

Step 2) Display ▲▼ in Column D (Up/Down Triangles)

Enter Arrow in D1, then enter the following formula in D2 and fill it down.

=IF(C2="","",IF(C2>0,UNICHAR(9650),IF(C2<0,UNICHAR(9660),"")))
  • UNICHAR(9650) = ▲
  • UNICHAR(9660) = ▼
  • No change (0): Blank (not displayed)

TIP (If You Want to Show No Change) Replace the final "" with a symbol such as UNICHAR(8212) (—), then add a gray rule.

Step 3) Set a Custom Color for ▲ (Conditional Formatting)

  1. Select the D2:last row range (for example, D2:D7).
  2. Select Home → Conditional Formatting → New Rule.
  3. Select Use a formula to determine which cells to format.
  4. Enter this formula:
=$D2=UNICHAR(9650)

In Format → Font → Color, select the color you want.

  • To enter an exact RGB value: Font Color → More Colors → Custom → Enter RGB values
  • Example high-contrast palette:
    • Up: Blue RGB(47, 128, 237) (HEX #2F80ED)
    • Down: Red RGB(235, 87, 87) (HEX #EB5757)
    • Flat: Gray RGB(130, 130, 130) (HEX #828282)

Step 4) Set a Custom Color for ▼ (Conditional Formatting)

Create another new rule in the same way.

=$D2=UNICHAR(9660)

Set the font color you want in the Format settings (such as orange or red).

Step 5) (Optional) Highlight the Numbers in Column B Too

Changing only the icon color is easy to read, but you can also highlight the numbers by adding conditional formatting to column B.

  • When the value in column B increases (B2>B1): Apply a font or fill color.
  • When the value in column B decreases (B2<B1): Apply a different color.

Select B2:B7, then add the following new formula rules.

Increase rule:

=$B2>$B1

Decrease rule:

=$B2<$B1

Advanced: Change Colors Starting at a Specific Threshold (such as 5% Up/Down)

In practice, you may want to distinguish a small change from a meaningful change by color. For example:

  • Increase of 5% or more: Dark blue
  • 0% to +5%: Light blue (or do not display)
  • Decrease of 5% or more: Dark red
  • 0% to -5%: Light red

Step 1) Create the Change% Column in Column E

Enter Change% in E1, then enter the following formula in E2 and fill it down.

=IF(OR(B2="",B1="",ROW()=2),"",IFERROR(B2/B1-1,""))

Change the number format for column E to Percentage.

  • Home → Number Format → %
  • Keyboard shortcut: Ctrl + Shift + %

Step 2) Change the Arrow in Column D to Use Column E

Now change the formula in D2 as follows:

=IF(E2="","",IF(E2>0,UNICHAR(9650),IF(E2<0,UNICHAR(9660),"")))

Step 3) Split Conditional Formatting Rules at the 5% Threshold

Strong increase (≥5%) rule (dark blue):

=$E2>=0.05

Small increase (0% to 5%) rule (light blue or retain the display):

=AND($E2>0,$E2<0.05)

Strong decrease (≤-5%) rule (dark red):

=$E2<=-0.05

Small decrease (-5% to 0%) rule (light red):

=AND($E2<0,$E2>-0.05)

When you have multiple rules, adjust their priority in Manage Rules. Placing the strong-change rules at the top makes the results easier to read.


Method 2: Custom Number Format (When You Only Need Eight Default Colors)

If you do not need arbitrary RGB colors and the eight default colors, such as Blue, Red, and Green, are enough, you can set this up quickly without conditional formatting.

Example: Display ▲▼ with the Number in Column C (Change Value)

Assume column C contains the change value (such as B2-B1), then apply the following number format to column C.

  1. Select column C → Ctrl + 1 (Format Cells).
  2. Number → Custom
  3. Enter the following format:
[Blue]"▲ "0;[Red]"▼ "0;" "0
  • Positive: Blue ▲ 10
  • Negative: Red ▼ 10
  • 0: Space + 0 (you can change this to “—” if desired)

Note: This method only supports named colors, not arbitrary RGB values. Use Method 1 if you need exact brand colors.


Method 3: Use Icon Sets (3 Triangles) for a Quick Setup (Limited Colors)

Icon Sets are quick to apply, but it is difficult to directly set their colors to the ones you want. However, they are useful for draft reports and quick visualizations.

Steps

  1. Create column C (Change) using a formula such as =B2-B1.
  2. Select the column C range → Home → Conditional Formatting → Icon Sets → 3 Triangles.
  3. Conditional Formatting → Manage Rules → Edit Rule

Recommended Settings (Using 0 as the Increase/Decrease/No-Change Threshold)

  • Type: Number instead of Percent
  • Show Icon Only: Select this option if you want to show only the icons.
  • Thresholds:
    • ▲: > 0
    • Middle (no change): = 0 (or hide it with no cell icon)
    • ▼: < 0

TIP: Hiding the icon for no change (0) produces a cleaner result (No Cell Icon).


Method 4 (Advanced): Automatically Change Triangle Shape Colors with VBA

If the “triangle shapes” you mean are under Insert → Shapes → Triangle, conditional formatting alone cannot automatically change a shape’s fill color. This is generally handled with a VBA macro.

Recommended Approach

  • Name each row’s shape to match its row number, such as Tri_2 and Tri_3.
  • Determine whether the value in column B increased, decreased, or stayed the same compared with the previous row, then change the shape color.

VBA Example (Conceptual)

Sub ColorTrianglesByChange()
    Dim ws As Worksheet: Set ws = ActiveSheet
    Dim lastRow As Long: lastRow = ws.Cells(ws.Rows.Count, "B").End(xlUp).Row

    Dim r As Long
    For r = 3 To lastRow 'Start from row 3 because row 2 has no comparison value
        Dim shpName As String: shpName = "Tri_" & r
        On Error Resume Next
        Dim shp As Shape: Set shp = ws.Shapes(shpName)
        On Error GoTo 0

        If Not shp Is Nothing Then
            If ws.Cells(r, "B").Value > ws.Cells(r - 1, "B").Value Then
                shp.Fill.ForeColor.RGB = RGB(47, 128, 237) 'Increase: blue
            ElseIf ws.Cells(r, "B").Value < ws.Cells(r - 1, "B").Value Then
                shp.Fill.ForeColor.RGB = RGB(235, 87, 87) 'Decrease: red
            Else
                shp.Fill.ForeColor.RGB = RGB(130, 130, 130) 'No change: gray
            End If
        End If

        Set shp = Nothing
    Next r
End Sub

Note: Macros may be restricted by security policies or file-sharing environments. If you distribute reports to multiple people, Method 1 (▲▼ + conditional formatting) has much lower maintenance costs than macros.


Troubleshooting

Issue Cause Solution
▲/▼ appears incorrectly in the first row There is no comparison value (B1), or the header is being compared. Use the ROW()=2 exception in C2/E2 to return a blank.
▼ appears for blank cells Blanks are calculated as 0, or an error occurs. Add a blank exception with IF(OR(B2="",B1=""),"", ...).
Conditional formatting applies to only some rows The rule’s Applies To range is too short. In Conditional Formatting → Manage Rules, change the range to D2:last row.
Colors overlap or the priority seems incorrect The rule order is mixed up. In Manage Rules, move the strong-change rules higher.

Checklist

  • Keep the number column (column B) as numbers for reliable sorting, totals, and PivotTables.
  • Keep the icons (▲▼) in a separate adjacent column (column D) for easier maintenance.
  • Use at least two conditional formatting rules (▲/▼), or four rules for strong and small changes.
  • If you need exact brand colors, use More Colors → Custom → RGB.

Related Articles (Internal Links: exceljump.com)

External References (Official/Authoritative Documentation)


FAQ

Q1. Can I change the RGB color of the triangle Icon Set itself?

A. You can change Icon Set thresholds and icon combinations, but the colors are often limited to a fixed default palette. If you need a custom RGB color, the most reliable method is ▲▼ symbols with conditional formatting (font color).

Q2. I want to include the icon in the number cell, like “▲ 135.”

A. This is possible, but the result becomes text, which can make calculations such as SUM and AVERAGE inconvenient. In practice, it is recommended to keep the numbers in column B as numbers and separate the icons into column D.

Q3. I want to hide the icon for 0 (no change).

A. Return "" when there is no change (0) in the Arrow formula to hide it. Alternatively, you can display UNICHAR(8212) (—) or another symbol and add a gray rule.

Q4. I want to use dark colors only for changes of 5% or more.

A. Create a Change% column (column E), then add threshold rules in conditional formatting, such as $E2>=0.05 and $E2<=-0.05.

Leave a Reply

Your email address will not be published. Required fields are marked *