conditional formating with Icon set

jvlavl

New Member
Joined
Nov 27, 2017
Messages
15
Hello,

I'm completely new to VBA
i'm trying to get a set of indicators at the first available column in every sheet that the workbook contains.
the column that is used for the verification is in percentage
I have tried it with the macro recorder and several other things but I can't get it right

the number of columns for each sheet is the same

texttexttext502550%50%
texttexttext504090%10%
texttext20504595%5%

<tbody>
</tbody>

50% = good
10% = warning
5% = red

Can someone help me here?

Rgds,

John
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

oldbrewer

Board Regular
Joined
Apr 11, 2010
Messages
11,005
how is 50% constructed ie is it text 50 plus text %
is it number 50 plus text %
is it .5 formatted as a percentage
 

jvlavl

New Member
Joined
Nov 27, 2017
Messages
15
Hello,

It's in number and the column is formatted as percentage.

Rgds,

John
 

oldbrewer

Board Regular
Joined
Apr 11, 2010
Messages
11,005
texttexttext502550%50%G
texttexttext504080%20%G
texttext20504590%10%W
texttexttext504692%8%W
texttexttext504998%2%R
I think your maths is wrong but whatever the last column
meets your icon requirement
easy to replace G,W,R with icons eg arrows and to
color them using conditional formatting.
are the numbers I have put in correct ?

<colgroup><col width="64" span="9" style="width:48pt"> </colgroup><tbody>
</tbody>
 

oldbrewer

Board Regular
Joined
Apr 11, 2010
Messages
11,005
col G is 1-col F so in G1 put =1 - F1 and drag down

in H1 put =if(g1>.1,"G",if(G1>>05,"W","R"))

in H1 put in the conditional formatting and use format painter for the rest of col H
 

Watch MrExcel Video

Forum statistics

Threads
1,122,213
Messages
5,594,872
Members
413,945
Latest member
V51773

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
Top