Conditional Formatting - Shade Every other group

sodonnell44

New Member
Joined
Mar 28, 2011
Messages
8
Hello,

Not sure if this is possible without VBA but can anyone think of a formula for this? What I have are states and districts and by the time I'm done with this, most of the districts will have several rows each. I want to shade every other district. What I started to do was create a unique number for each state, therefore Column A is that. The first number is the state number (in alphabetical order) and then the district number. It's just a vlookup (from another work sheet) with &. I would like to start the formatting in row 3. Any help would be greatly appreciated. Thanks
<table border="0" cellpadding="0" cellspacing="0" width="256"><col style="width: 48pt;" width="64" span="4"> <tbody><tr style="height: 45pt;" height="60"> <td class="xl65" style="height: 45pt; width: 48pt;" width="64" height="60">Label</td> <td class="xl66" style="border-left: medium none; width: 48pt;" width="64"> </td> <td class="xl67" style="border-left: medium none; width: 48pt;" width="64">State</td> <td class="xl67" style="border-left: medium none; width: 48pt;" width="64">District</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20"> </td> <td class="xl68" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl68" style="border-top: medium none; border-left: medium none;"> </td> <td class="xl68" style="border-top: medium none; border-left: medium none;"> </td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">37</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">AZ7</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">AZ</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">7</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">38</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">AZ8</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">AZ</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">8</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">38</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">AZ8</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">AZ</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">8</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">511</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CA11</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">11</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">547</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CA47</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">47</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">67</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CO7</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CO</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">7</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">74</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CT4</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CT</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">4</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">75</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CT5</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">CT</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">5</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">1012</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">GA12</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">GA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">12</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">102</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">GA2</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">GA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">2</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">111</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">HI1</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">HI</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">1</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">151</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">IA1</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">IA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">1</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">152</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">IA2</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">IA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">2</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">153</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">IA3</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">IA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">3</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">142</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">IN2</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">IN</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">2</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">173</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">KY3</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">KY</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">3</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">176</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">KY6</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">KY</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">6</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">176</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">KY6</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">KY</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">6</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">2110</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA10</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">10</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">212</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA2</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">2</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">214</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA4</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">4</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">215</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA5</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">5</td> </tr> <tr style="height: 15pt;" height="20"> <td class="xl65" style="height: 15pt; border-top: medium none;" height="20">216</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA6</td> <td class="xl69" style="border-top: medium none; border-left: medium none;">MA</td> <td class="xl69" style="border-top: medium none; border-left: medium none;" align="right">6</td> </tr> </tbody></table>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hello sodonnell44, welcome to MrExcel

You can do that like this, select the whole range from row 3, e.g. A3:D100 and then use this formula in conditional formatting

=MOD(SUM(1/COUNTIF($B$3:$B3,$B$3:$B3)),2)

That will format the first row and then every other district group
 
Upvote 0
If you were willing to use a separate column to control row formatting, in E3 and copy down

=1 - MOD((B3=B2) + E2, 2)

<TABLE style="WIDTH: 197pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=261 border=0 x:str><COLGROUP><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 2230" span=3 width=49><COL style="WIDTH: 49pt; mso-width-source: userset; mso-width-alt: 2962" width=65><COL style="WIDTH: 37pt; mso-width-source: userset; mso-width-alt: 2230" width=49><TBODY><TR style="HEIGHT: 12pt" height=16><TD class=xl27 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12pt; BACKGROUND-COLOR: #f3f3f3" width=49 height=16>Label

</TD><TD class=xl27 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #f3f3f3" width=49> </TD><TD class=xl27 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #f3f3f3" width=49>State</TD><TD class=xl27 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #f3f3f3" width=65>District</TD><TD class=xl27 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: #d4d0c8; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #f3f3f3" width=49>Color</TD></TR><TR style="HEIGHT: 12.6pt" height=17><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.6pt; BACKGROUND-COLOR: white" width=49 height=17> </TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49> </TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49> </TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=65> </TD><TD class=xl30 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white"> </TD></TR><TR style="HEIGHT: 12.6pt" height=17><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.6pt; BACKGROUND-COLOR: white" align=right width=49 height=17 x:num>37</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>AZ7</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>AZ</TD><TD class=xl29 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=65 x:num>7</TD><TD class=xl30 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" align=right x:num x:fmla="=1 - MOD((B3=B2) + E2, 2)">1</TD></TR><TR style="HEIGHT: 12.6pt" height=17><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.6pt; BACKGROUND-COLOR: white" align=right width=49 height=17 x:num>38</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>AZ8</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>AZ</TD><TD class=xl29 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=65 x:num>8</TD><TD class=xl30 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" align=right x:num x:fmla="=1 - MOD((B4=B3) + E3, 2)">0</TD></TR><TR style="HEIGHT: 12.6pt" height=17><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.6pt; BACKGROUND-COLOR: white" align=right width=49 height=17 x:num>38</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>AZ8</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>AZ</TD><TD class=xl29 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=65 x:num>8</TD><TD class=xl30 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" align=right x:num x:fmla="=1 - MOD((B5=B4) + E4, 2)">0</TD></TR><TR style="HEIGHT: 12.6pt" height=17><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.6pt; BACKGROUND-COLOR: white" align=right width=49 height=17 x:num>511</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CA11</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CA</TD><TD class=xl29 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=65 x:num>11</TD><TD class=xl30 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" align=right x:num x:fmla="=1 - MOD((B6=B5) + E5, 2)">1</TD></TR><TR style="HEIGHT: 12.6pt" height=17><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.6pt; BACKGROUND-COLOR: white" align=right width=49 height=17 x:num>547</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CA47</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CA</TD><TD class=xl29 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=65 x:num>47</TD><TD class=xl30 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" align=right x:num x:fmla="=1 - MOD((B7=B6) + E6, 2)">0</TD></TR><TR style="HEIGHT: 12.6pt" height=17><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.6pt; BACKGROUND-COLOR: white" align=right width=49 height=17 x:num>547</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CA48</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CO</TD><TD class=xl29 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=65 x:num>7</TD><TD class=xl30 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" align=right x:num x:fmla="=1 - MOD((B8=B7) + E7, 2)">1</TD></TR><TR style="HEIGHT: 12.6pt" height=17><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.6pt; BACKGROUND-COLOR: white" align=right width=49 height=17 x:num>547</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CA48</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CO</TD><TD class=xl29 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=65 x:num>4</TD><TD class=xl30 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" align=right x:num x:fmla="=1 - MOD((B9=B8) + E8, 2)">1</TD></TR><TR style="HEIGHT: 12.6pt" height=17><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.6pt; BACKGROUND-COLOR: white" align=right width=49 height=17 x:num>75</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CT4</TD><TD class=xl28 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 37pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=49>CT</TD><TD class=xl29 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; WIDTH: 49pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=65 x:num>5</TD><TD class=xl30 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" align=right x:num x:fmla="=1 - MOD((B10=B9) + E9, 2)">0</TD></TR></TBODY></TABLE>
 
Last edited:
Upvote 0
Hello,

Not sure if this is possible without VBA but can anyone think of a formula for this? What I have are states and districts and by the time I'm done with this, most of the districts will have several rows each. I want to shade every other district. What I started to do was create a unique number for each state, therefore Column A is that. The first number is the state number (in alphabetical order) and then the district number. It's just a vlookup (from another work sheet) with &. I would like to start the formatting in row 3. Any help would be greatly appreciated. Thanks
<TABLE cellSpacing=0 cellPadding=0 width=256 border=0><COLGROUP><COL style="WIDTH: 48pt" span=4 width=64><TBODY><TR style="HEIGHT: 45pt" height=60><TD class=xl65 style="WIDTH: 48pt; HEIGHT: 45pt" width=64 height=60>Label</TD><TD class=xl66 style="BORDER-LEFT: medium none; WIDTH: 48pt" width=64></TD><TD class=xl67 style="BORDER-LEFT: medium none; WIDTH: 48pt" width=64>State</TD><TD class=xl67 style="BORDER-LEFT: medium none; WIDTH: 48pt" width=64>District</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20></TD><TD class=xl68 style="BORDER-TOP: medium none; BORDER-LEFT: medium none"></TD><TD class=xl68 style="BORDER-TOP: medium none; BORDER-LEFT: medium none"></TD><TD class=xl68 style="BORDER-TOP: medium none; BORDER-LEFT: medium none"></TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>37</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">AZ7</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">AZ</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>7</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>38</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">AZ8</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">AZ</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>8</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>38</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">AZ8</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">AZ</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>8</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>511</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CA11</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>11</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>547</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CA47</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>47</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>67</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CO7</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CO</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>7</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>74</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CT4</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CT</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>4</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>75</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CT5</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">CT</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>5</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>1012</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">GA12</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">GA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>12</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>102</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">GA2</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">GA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>2</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>111</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">HI1</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">HI</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>1</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>151</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">IA1</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">IA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>1</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>152</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">IA2</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">IA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>2</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>153</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">IA3</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">IA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>3</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>142</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">IN2</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">IN</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>2</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>173</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">KY3</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">KY</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>3</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>176</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">KY6</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">KY</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>6</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>176</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">KY6</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">KY</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>6</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>2110</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA10</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>10</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>212</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA2</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>2</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>214</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA4</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>4</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>215</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA5</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>5</TD></TR><TR style="HEIGHT: 15pt" height=20><TD class=xl65 style="BORDER-TOP: medium none; HEIGHT: 15pt" height=20>216</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA6</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none">MA</TD><TD class=xl69 style="BORDER-TOP: medium none; BORDER-LEFT: medium none" align=right>6</TD></TR></TBODY></TABLE>
This works as long as the data to be formatted does not start on row 1 and the values in cell C2 is not the same as the value of cell C3.

So, it looks like your data and setup meet these conditions.

Select the entire range to format A3:D25 starting from cell A3.

In conditional formatting, use the "Formula Option" and use this formula:

=MOD(SUMPRODUCT(--($C$2:$C2<>$C$3:$C3)),2)

Here are the results you can expect:

<TABLE style="WIDTH: 216pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=288 border=0 x:str><COLGROUP><COL style="WIDTH: 54pt" span=4 width=72><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right width=72 height=17 x:num>37</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" width=72>AZ7</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" width=72>AZ</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right width=72 x:num>7</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>38</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">AZ8</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">AZ</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>8</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>38</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">AZ8</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">AZ</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>8</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>511</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">CA11</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">CA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>11</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>547</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">CA47</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">CA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>47</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>67</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">CO7</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">CO</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>7</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>74</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">CT4</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">CT</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>4</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>75</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">CT5</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">CT</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>5</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>1012</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">GA12</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">GA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>12</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>102</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">GA2</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">GA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>2</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>111</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">HI1</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">HI</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>1</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>151</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">IA1</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">IA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>1</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>152</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">IA2</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">IA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>2</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>153</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">IA3</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">IA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>3</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>142</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">IN2</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">IN</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>2</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>173</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">KY3</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">KY</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>3</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>176</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">KY6</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">KY</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>6</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; mso-pattern: auto none; mso-ignore: style" align=right height=17 x:num>176</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">KY6</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style">KY</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BACKGROUND: #ccffcc; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; mso-pattern: auto none; mso-ignore: style" align=right x:num>6</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>2110</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA10</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>10</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>212</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA2</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>2</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>214</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA4</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>4</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>215</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA5</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>5</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right height=17 x:num>216</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA6</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent">MA</TD><TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" align=right x:num>6</TD></TR></TBODY></TABLE>
 
Upvote 0
Hmmm...

Maybe I misunderstood what you want!

What I suggested formats based on the unique STATES.
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,814
Members
452,945
Latest member
Bib195

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