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
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
how is 50% constructed ie is it text 50 plus text %
is it number 50 plus text %
is it .5 formatted as a percentage
 
Upvote 0
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>
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,562
Messages
6,114,322
Members
448,564
Latest member
ED38

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