need arrow based on cell color

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
1,010
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team

I need a arrow based on A1 to G11 so what ever we have cell color same color I need in Arrow from A15 (example) including data...

A15 onward arrow should be in color up arrow green and red arrow down and data will remain black




book3
ABCDEFGHIJ
153373816111311RGB RED
2103740131014111460255
310383815713102080
46341441910119800
556394216121511
663314017151212GreenRed
760474322121917
865495527241615
952414117151315
1072405317121416
1158304513151413
12
13
14Output need from A1 to G11
1553 ▲
1655 ▼
1754 ▲
18
Sheet2
Cell Formulas
RangeFormula
H15H15=UNICHAR(9660)
H16H16=UNICHAR(9650)
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hello! This should help. The arrows were first inserted into a separate cell using symbol insertion. Then copied and added to the list of formats. After that, UV rules were created, where the number format was selected from one created in advance.
Book1.xlsm
ABCDEFG
153▲37▲38▲16▼11▼13▼11▼
210▼37▲40▲13▼10▼14▼11▼
310▼38▲38▲15▼7▼13▼10▼
463▲41▲44▲19▼10▼11▼9▼
556▲39▲42▲16▼12▼15▼11▼
663▲31▲40▲17▼15▼12▼12▼
760▲47▲43▲22▲12▼19▼17▼
865▲49▲55▲27▲24▲16▼15▼
952▲41▲41▲17▼15▼13▼15▼
1072▲40▲53▲17▼12▼14▼16▼
1158▲30▲45▲13▼15▼14▼13▼
Таблица12
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:G11Cell Value<20textNO
A1:G11Cell Value>20textNO

 
Last edited:
Upvote 0
Hello! This should help. The arrows were first inserted into a separate cell using symbol insertion. Then copied and added to the list of formats. After that, UV rules were created, where the number format was selected from one created in advance.
Book1.xlsm
ABCDEFG
153▲37▲38▲16▼11▼13▼11▼
210▼37▲40▲13▼10▼14▼11▼
310▼38▲38▲15▼7▼13▼10▼
463▲41▲44▲19▼10▼11▼9▼
556▲39▲42▲16▼12▼15▼11▼
663▲31▲40▲17▼15▼12▼12▼
760▲47▲43▲22▲12▼19▼17▼
865▲49▲55▲27▲24▲16▼15▼
952▲41▲41▲17▼15▼13▼15▼
1072▲40▲53▲17▼12▼14▼16▼
1158▲30▲45▲13▼15▼14▼13▼
Таблица12
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:G11Cell Value<20textNO
A1:G11Cell Value>20textNO

Hi Sergius,

Thanks for chekcing on this

I need the arrow only for the colored cell not for all the cells


I thnk for this we may need Macro:)

Regards
Sanjeev
 
Upvote 0
Are the fill colors applied manually, or by conditional formatting?

If they are applied manually, and color is only thing that determines the direction of the arrow, then you will need VBA for this.

If they are applied by conditional formatting, what are the rules?
 
Upvote 0
Are the fill colors applied manually, or by conditional formatting?

If they are applied manually, and color is only thing that determines the direction of the arrow, then you will need VBA for this.

If they are applied by conditional formatting, what are the rules?
Hi,

Thanks for checking on this.

We have copied the table from the PPT to the Excel file so there is not conditional formating on the file.

Regards
Sanjeev
 
Upvote 0
Is this what you wanted?
Book1
ABCDEFGHIJ
153▲37▲38▲16111311RGBRED
210▼37▲40▲131014111460255
310▼38▲38▲15▲713102080
463▲41▲44▲1910▼119800
556▲39▲42▲16121511
663314017▼151212GreenRed
760▲47▲43▲221219175296274255
865▲49▲55▲27▲241615
952▲41▲41▲17▲1513▼15▲▼
1072▲40▲53▲17121416
1158304513▼151413
12
13
14Output need from A1 to G11
1553 ▲
1655 ▼
1754 ▲
Sheet1
Cell Formulas
RangeFormula
I7I7=COLOR_FILLS(A1)
J7J7=COLOR_FILLS(A2)
H15H15=UNICHAR(9660)
H16H16=UNICHAR(9650)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:G11Expression=COLOR_FILLS(A1)=5296274textNO
A1:G11Expression=COLOR_FILLS(A1)=255textNO

To use the Color_Fills function, add this code to the standard module
VBA Code:
Public Function COLOR_FILLS(CELL As Range) As Double
COLOR_FILLS = CELL.Interior.Color
End Function
 
Upvote 0
Is this what you wanted?
Book1
ABCDEFGHIJ
153▲37▲38▲16111311RGBRED
210▼37▲40▲131014111460255
310▼38▲38▲15▲713102080
463▲41▲44▲1910▼119800
556▲39▲42▲16121511
663314017▼151212GreenRed
760▲47▲43▲221219175296274255
865▲49▲55▲27▲241615
952▲41▲41▲17▲1513▼15▲▼
1072▲40▲53▲17121416
1158304513▼151413
12
13
14Output need from A1 to G11
1553 ▲
1655 ▼
1754 ▲
Sheet1
Cell Formulas
RangeFormula
I7I7=COLOR_FILLS(A1)
J7J7=COLOR_FILLS(A2)
H15H15=UNICHAR(9660)
H16H16=UNICHAR(9650)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:G11Expression=COLOR_FILLS(A1)=5296274textNO
A1:G11Expression=COLOR_FILLS(A1)=255textNO

To use the Color_Fills function, add this code to the standard module
VBA Code:
Public Function COLOR_FILLS(CELL As Range) As Double
COLOR_FILLS = CELL.Interior.Color
End Function


Hi,

Thank you so much for your help on this :)

Yes! i need same way appeared on the below table

I am not getting an arrow on the data could you please help me with this

I have written the code to conditional formatting

ie. =COLOR_FILLS(A1)=5296274 but not getting the arrow on data..
 
Last edited:
Upvote 0
Read my post #2. I wrote there how to add an arrow symbol.
Hi Sergius,

Thank you so much for your time on this I have tried as per post 2 and after that applied the formula you have provided
I am getting as below data along with arrow

got the color on cell but for arrow I am getting all down arrow


1732087108081.png
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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