Need Green and Red color to arrow but data are in formula

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
982
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Looking again at the original post I don't think conditional formatting would work as I can't see a pattern in the placing of the "arrows" in the XL2BB posted, they look random to me.

It might be an option in another cell if there is data there showing the 2 numbers that are being compared for sksanjeev786 to make the decision where to place the arrows, but sksanjeev786 has only shown the one column and so I can't tell what else exists on the sheet.

Hi Mark,

Thank you so much for checking
so now I have kept the data without formula I hope now this is possible to color arrow to green and red

Book1
A
1100%
260%
355% ▲
442% ▲
535%
639% ▲
750%
858% ▲
928%
1035% ▼
Sheet1
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
One way possibly

VBA Code:
Sub sksanjeev786B()
    Dim myCell As Range
    Application.ScreenUpdating = False

    For Each myCell In Range("A1:A10")
        If Right(myCell, 1) = ChrW(9650) Then
            myCell.Characters(Len(myCell), 1).Font.Color = vbGreen
        End If

        If Right(myCell, 1) = ChrW(9660) Then
            myCell.Characters(Len(myCell), 1).Font.Color = vbRed
        End If
    Next

End Sub
 
Upvote 0
Solution
One way possibly

VBA Code:
Sub sksanjeev786B()
    Dim myCell As Range
    Application.ScreenUpdating = False

    For Each myCell In Range("A1:A10")
        If Right(myCell, 1) = ChrW(9650) Then
            myCell.Characters(Len(myCell), 1).Font.Color = vbGreen
        End If

        If Right(myCell, 1) = ChrW(9660) Then
            myCell.Characters(Len(myCell), 1).Font.Color = vbRed
        End If
    Next

End Sub
Thank you so much for the VBA it works perfectly :)
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,457
Members
452,515
Latest member
nguyenkim

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top