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>
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>