Conditional Formatting Help - red/green or icons based on previous cell

bigazonk

New Member
Joined
Apr 15, 2015
Messages
2
Hello, I'm looking for an Excel conditional formatting to help me achieve what I'm needing. I have a column of data, and I'd like each new cell of data entered to be represented by an icon set based on the previous cell data only (either red (increase), yellow (no change), or green (decrease). Please see the below for what I'm looking for.

171
166 (green triangle)
165 (yellow triangle/minus sign)
161 (green triangle)
163 (red triangle)
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi.

Excel Icon sets specifically exclude the ability to use relative references in formulas. However, you can get around this in a number of ways :

1. Use the INDIRECT function in your formula.

2. Create a single Conditional Format rule for the first cell in your range (using an absolute Cell Reference) - and then COPY the FORMAT down to the other cells.
(in other words each cell has it's own conditional format referring to the cell above, rather than one conditional format that "applies to" a range of cells.

3. Create a little "helper column" next to the values with the desired result of your formula and put the conditional format on THAT column.

The steps below illustrate technique 3.

[TABLE="width: 118"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]171[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]166[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]166[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]161[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]163[/TD]
[TD]-2[/TD]
[/TR]
</tbody>[/TABLE]

.. where the formula in Column B2:B5 is "=A1-A2".

Then put an Icon Set on Column B eg as follows :

Format Style : Icon Sets
Icon Style : 3 Symbols (circled)

When value >= 1 Number Green Icon
When < 1 and >= 0 Number Orange/Yellow Icon
When <0 Red Icon

Tick the "Show Icon Only" box.

An image of the basic setup and result is here at https://pasteboard.co/HbDGiZW.jpg

If you are using Excel 2010 and above you can also mix and match Icons from Multiple sets, using eg The Green Tick and Red "x" from the 3 Symbols circled set, and taking eg the Orange Dash from the Three Triangles Icon set instead of the Yellow "!" in the 3 symbols circled set.

Cheers,
Warren K.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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