Icon sets (up/down arrow) as values rise or fall

gcefaloni

Board Regular
Joined
Mar 15, 2016
Messages
119
Hi,

I have a single column of cummulative stock market returns going up and down on a daily basis. I'd like to have an up arrow show in the cell in question if the previous value in the column was lower and vice versa.
By cummulative stock returns, I mean if A1 shows the returns for January 2022, A2 would show the sum of January 2022 and February 2022. A3 would then take A2 (Jan+Feb) and add March, so on and so forth, to make a cummulative time series.
For the icon set questions. as an example: IF A1 = -2% and A2= -1% (which means Feb was +1%), I'd like A2 to show an up arrow even if the value is -1% because it's an increase compared to A1. If A3 was then -1.5%, that would be a down arrow because it's lower than A2.

What formula should I use in the conditional formatting fields using icon sets?

Thanks!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
The easiest way is to put this formula into A3. This will put an up or down arrow in the adjacent column.
Excel Formula:
=IF(A1<A2,UNICHAR(8593),(UNICHAR(8595)))

If you absolutely need the arrow in the same cell as this months percentage, you'll have to do the math in place of A2 and prepend that before the UNICHAR statements. I don't believe there's any way to suffix the value with the arrow in the same cell because that changes the value of the cell and becomes a circular reference. It makes my brain hurt.
 
Upvote 0
I had gone the way of conditional formatting - format all cells based on their values - format style (icon sets): up green arrow value > =OFFSET($O$4,ROW()-1,0,1,1), type=Formula. But that doesn't seem to work properly either.

I'd indeed need it to be in the same cell because I'm using it for presentation into a dashboard with multiple such logics and it would get quite messy otherwise (hidden columns and all).
 
Upvote 0
OK, I think I got this, try this...

First, make two separate Custom formats
##%↑;-##%↑
##%↓;-##%↓
You can make the up and down arrows by hitting the left ALT key and hitting 24 or 25 ON THE KEYPAD (not the numbers over the QWERTY keys)

Then, you'll need two different rules in the conditional format:

=$B1<$A1 with Stop if True checked
Set the custom text format of:
##%↑;-##%↑

and

=$B1>$A1
Set the custom text format of:
##%↓;-##%
Capture.JPG
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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