Excel Conditional Formatting with Icon Sets using relative reference

sersan

New Member
Joined
Jun 1, 2018
Messages
2
Hi all,

I'm trying to create a conditional formatting in a column that will look to the value in the previous column to apply the traffic lights icons: green, yellow, and red.
The idea is, if value equals or higher than reference value then green, if greater than 75% of that value then yellow, otherwise red.
However, icon sets don't allow the usage of relative reference, it has to be an absolute value. The "easy" option would be to create a different rule for each cell, but that would take forever.

I'm trying to use OFFSET as a way to trick Excel, but for some reason it doesn't work...
As an example, please consider the following example:


In the conditional formating, I'm using the formula "=OFFSET($C$3,ROW()-3,0,1,1)" for the "green" and "=OFFSET($C$3,ROW()-3,0,1,1)*0.75" for yellow, with the results observed in the picture.
As you can see, cell D5 should be green!

Hope someone can find the problem, or suggest another way to make this conditional formatting work!

Many thanks to all for the help!
Regards
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Sorry, figure not available...
It should be something like this:
[TABLE="width: 443"]
<colgroup><col span="4"><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]A[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]79%[/TD]
[TD](yellow)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]B[/TD]
[TD="align: right"]80%[/TD]
[TD="align: right"]46%[/TD]
[TD](red)[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD]C[/TD]
[TD="align: right"]85%[/TD]
[TD="align: right"]90%[/TD]
[TD](yellow)[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD]D[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]70%[/TD]
[TD](red)[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD]E[/TD]
[TD="align: right"]50%[/TD]
[TD="align: right"]15%[/TD]
[TD](red)[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD]F[/TD]
[TD="align: right"]50%[/TD]
[TD="align: right"]78%[/TD]
[TD](yellow)[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD]G[/TD]
[TD="align: right"]30%[/TD]
[TD="align: right"]15%[/TD]
[TD](red)[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD][/TD]
[TD]H[/TD]
[TD="align: right"]50%[/TD]
[TD="align: right"]40%[/TD]
[TD](red)[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD][/TD]
[TD]I[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]83%[/TD]
[TD](yellow)[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD][/TD]
[TD]J[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]52%[/TD]
[TD](red)[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD][/TD]
[TD]K[/TD]
[TD="align: right"]90%[/TD]
[TD="align: right"]15%[/TD]
[TD](red)[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD][/TD]
[TD]L[/TD]
[TD="align: right"]90%[/TD]
[TD="align: right"]52%[/TD]
[TD](red)[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD][/TD]
[TD]M[/TD]
[TD="align: right"]70%[/TD]
[TD="align: right"]75%[/TD]
[TD](yellow)[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD][/TD]
[TD]N[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]64%[/TD]
[TD](red)[/TD]
[/TR]
[TR]
[TD]17[/TD]
[TD][/TD]
[TD]O[/TD]
[TD="align: right"]100%[/TD]
[TD="align: right"]79%[/TD]
[TD](yellow)[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD][/TD]
[TD]P[/TD]
[TD="align: right"]90%[/TD]
[TD="align: right"]62%[/TD]
[TD](red)[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
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