Hi,
Given the following data set:
<table style="font-family:Arial,Arial; font-size:10pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; " border="1" cellpadding="0" cellspacing="0"><tbody><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td> </td><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td><td>H</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">1</td><td>Data1</td><td>Day1</td><td>Day2</td><td>Day3</td><td>Day4</td><td>Day5</td><td>Day6</td><td>Day7</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">2</td><td>ABC</td><td style="text-align:right; ">2</td><td style="text-align:right; ">76</td><td style="text-align:right; ">53</td><td style="text-align:right; ">58</td><td style="text-align:right; ">80</td><td style="text-align:right; ">96</td><td style="text-align:right; ">30</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">3</td><td>DEF</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0</td><td style="text-align:right; ">0</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">4</td><td>GHI</td><td style="text-align:right; ">52</td><td style="text-align:right; ">39</td><td style="text-align:right; ">20</td><td style="text-align:right; ">72</td><td style="text-align:right; ">53</td><td style="text-align:right; ">33</td><td style="text-align:right; ">1</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">5</td><td>ABC</td><td style="text-align:right; ">33</td><td style="text-align:right; ">97</td><td style="text-align:right; ">22</td><td style="text-align:right; ">74</td><td style="text-align:right; ">38</td><td style="text-align:right; ">91</td><td style="text-align:right; ">82</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">6</td><td>DEF</td><td style="text-align:right; ">12</td><td style="text-align:right; ">13</td><td style="text-align:right; ">16</td><td style="text-align:right; ">20</td><td style="text-align:right; ">33</td><td style="text-align:right; ">59</td><td style="text-align:right; ">42</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">7</td><td>GHI</td><td style="text-align:right; ">79</td><td style="text-align:right; ">50</td><td style="text-align:right; ">76</td><td style="text-align:right; ">86</td><td style="text-align:right; ">88</td><td style="text-align:right; ">12</td><td style="text-align:right; ">63</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">8</td><td>ABC</td><td style="text-align:right; ">2</td><td style="text-align:right; ">7</td><td style="text-align:right; ">10</td><td style="text-align:right; ">39</td><td style="text-align:right; ">100</td><td style="text-align:right; ">52</td><td style="text-align:right; ">97</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">9</td><td>DEF</td><td style="text-align:right; ">75</td><td style="text-align:right; ">98</td><td style="text-align:right; ">11</td><td style="text-align:right; ">9</td><td style="text-align:right; ">95</td><td style="text-align:right; ">21</td><td style="text-align:right; ">68</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">10</td><td>GHI</td><td style="text-align:right; ">41</td><td style="text-align:right; ">93</td><td style="text-align:right; ">72</td><td style="text-align:right; ">7</td><td style="text-align:right; ">80</td><td style="text-align:right; ">14</td><td style="text-align:right; ">49</td></tr></tbody></table>
I'm after some code which will convert any Cells in the "DEF" and "GHI" Rows from whatever is in them to 0. To illustrate, I have manually done this in the first "DEF" Row.
My list will grow and shrink, so this needs to be considered too (the Column count will remain constant).
Thanks in advance.
Matty
Given the following data set:
<table style="font-family:Arial,Arial; font-size:10pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; " border="1" cellpadding="0" cellspacing="0"><tbody><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td> </td><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td><td>H</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">1</td><td>Data1</td><td>Day1</td><td>Day2</td><td>Day3</td><td>Day4</td><td>Day5</td><td>Day6</td><td>Day7</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">2</td><td>ABC</td><td style="text-align:right; ">2</td><td style="text-align:right; ">76</td><td style="text-align:right; ">53</td><td style="text-align:right; ">58</td><td style="text-align:right; ">80</td><td style="text-align:right; ">96</td><td style="text-align:right; ">30</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">3</td><td>DEF</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0
</td><td style="text-align:right; ">0</td><td style="text-align:right; ">0</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">4</td><td>GHI</td><td style="text-align:right; ">52</td><td style="text-align:right; ">39</td><td style="text-align:right; ">20</td><td style="text-align:right; ">72</td><td style="text-align:right; ">53</td><td style="text-align:right; ">33</td><td style="text-align:right; ">1</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">5</td><td>ABC</td><td style="text-align:right; ">33</td><td style="text-align:right; ">97</td><td style="text-align:right; ">22</td><td style="text-align:right; ">74</td><td style="text-align:right; ">38</td><td style="text-align:right; ">91</td><td style="text-align:right; ">82</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">6</td><td>DEF</td><td style="text-align:right; ">12</td><td style="text-align:right; ">13</td><td style="text-align:right; ">16</td><td style="text-align:right; ">20</td><td style="text-align:right; ">33</td><td style="text-align:right; ">59</td><td style="text-align:right; ">42</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">7</td><td>GHI</td><td style="text-align:right; ">79</td><td style="text-align:right; ">50</td><td style="text-align:right; ">76</td><td style="text-align:right; ">86</td><td style="text-align:right; ">88</td><td style="text-align:right; ">12</td><td style="text-align:right; ">63</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">8</td><td>ABC</td><td style="text-align:right; ">2</td><td style="text-align:right; ">7</td><td style="text-align:right; ">10</td><td style="text-align:right; ">39</td><td style="text-align:right; ">100</td><td style="text-align:right; ">52</td><td style="text-align:right; ">97</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">9</td><td>DEF</td><td style="text-align:right; ">75</td><td style="text-align:right; ">98</td><td style="text-align:right; ">11</td><td style="text-align:right; ">9</td><td style="text-align:right; ">95</td><td style="text-align:right; ">21</td><td style="text-align:right; ">68</td></tr><tr style="height:17px ;"><td style="font-size:8pt; background-color:#cacaca; text-align:center; ">10</td><td>GHI</td><td style="text-align:right; ">41</td><td style="text-align:right; ">93</td><td style="text-align:right; ">72</td><td style="text-align:right; ">7</td><td style="text-align:right; ">80</td><td style="text-align:right; ">14</td><td style="text-align:right; ">49</td></tr></tbody></table>
I'm after some code which will convert any Cells in the "DEF" and "GHI" Rows from whatever is in them to 0. To illustrate, I have manually done this in the first "DEF" Row.
My list will grow and shrink, so this needs to be considered too (the Column count will remain constant).
Thanks in advance.
Matty