Hi everyone, im looking for some advanced conditional formating help.
I am trying to take a group (range) of cells and conditionally format them into 2 colors based on an even percentage (33% each) the size (range) of the group will never be the same. Here is an example of some cells.
<TABLE style="WIDTH: 47pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=63><COLGROUP><COL style="WIDTH: 47pt" width=63><TBODY><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 47pt; HEIGHT: 10.5pt; BORDER-TOP: white 0.5pt solid; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14 width=63>$26,187</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$25,941</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$23,097</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$18,145</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$17,510</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$16,669</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$16,617</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$15,844</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$14,544</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$13,952</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$13,810</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$12,312</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$1,546</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$1,079</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$479</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$200</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR></TBODY></TABLE>
To make matter worse... i need to be able to not include the cells with "$0" in the range.
Thanks everyone in advance for any help.
sd
I am trying to take a group (range) of cells and conditionally format them into 2 colors based on an even percentage (33% each) the size (range) of the group will never be the same. Here is an example of some cells.
<TABLE style="WIDTH: 47pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=63><COLGROUP><COL style="WIDTH: 47pt" width=63><TBODY><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 47pt; HEIGHT: 10.5pt; BORDER-TOP: white 0.5pt solid; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14 width=63>$26,187</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$25,941</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$23,097</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$18,145</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$17,510</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$16,669</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$16,617</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$15,844</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$14,544</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$13,952</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$13,810</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$12,312</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$1,546</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$1,079</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$479</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$200</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR><TR style="HEIGHT: 10.5pt; mso-height-source: userset" height=14><TD style="BORDER-BOTTOM: white 0.5pt solid; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 10.5pt; BORDER-TOP: white; BORDER-RIGHT: lime 0.5pt solid" class=xl85 height=14>$0</TD></TR></TBODY></TABLE>
To make matter worse... i need to be able to not include the cells with "$0" in the range.
Thanks everyone in advance for any help.
sd