Copy and Pasting Days into different columns

segran

Active Member
Joined
Aug 20, 2004
Messages
335
Hi,

I have 2 columns - one with day of the week and the other with data. Each day of the week has 24 data points associated with it.

<html><head><title>Excel Jeanie HTML</title></head><body>

<!-- ######### Start Created Html Code To Copy ########## -->

<b>Hourly Data</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Arial,Arial; font-size:10pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:99px;" /><col style="width:76px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td >*</td><td >J</td><td >K</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="background-color:#c0c0c0; font-weight:bold; ">Day</td><td style="background-color:#c0c0c0; font-weight:bold; ">Eritrea</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="background-color:#c0c0c0; "> Saturday</td><td style="background-color:#c0c0c0; text-align:right; ">15.6</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">15</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">16.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">20</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">25.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">28</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >10</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29.6</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >11</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">31.88</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >12</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">32.95</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >13</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">32.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >14</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >15</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">26.95</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >16</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">27.01</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >17</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">27.3</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >18</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">27.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >19</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">30.2</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >20</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">36.94</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >21</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">38.72</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >22</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">36.762</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >23</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">33.336</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >24</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">24.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >25</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">21.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >26</td><td style="background-color:#c0c0c0; "> Tuesday</td><td style="background-color:#c0c0c0; text-align:right; ">15.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >27</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.9</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >28</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >29</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >30</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">15.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >31</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">20.6</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >32</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">27.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >33</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >34</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">31.2</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >35</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">33.3</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >36</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">36.65</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >37</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">36.57</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >38</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">33.11</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >39</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29.9</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >40</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29.04</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >41</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">30.19</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >42</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">30.9</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >43</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">34.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >44</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">41.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >45</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">42.722</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >46</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">41.347</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >47</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">37.84</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >48</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">33.125</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >49</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">23.1</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >50</td><td style="background-color:#c0c0c0; ">Sunday</td><td style="background-color:#c0c0c0; text-align:right; ">17.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >51</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">16.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >52</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">16.3</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >53</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">17.6</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >54</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">17</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >55</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">15.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >56</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">23.695</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >57</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">23.378</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >58</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">26.52</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >59</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">27.349</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >60</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29.213</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >61</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">28.916</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >62</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">27.999</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >63</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">24.396</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >64</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">27.233</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >65</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">23.284</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >66</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">22.832</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >67</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">22.507</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >68</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">34.2</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >69</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">34.2</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >70</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">35.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >71</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >72</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">22.3</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >73</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">17.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >74</td><td style="background-color:#c0c0c0; ">Wednesday</td><td style="background-color:#c0c0c0; text-align:right; ">17.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >75</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">15.1</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >76</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.3</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >77</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >78</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">15.3</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >79</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">15.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >80</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">27.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >81</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">28.1</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >82</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">31.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >83</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">32.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >84</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">33.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >85</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">33.3</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >86</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >87</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">25.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >88</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">26</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >89</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">26.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >90</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">32.6</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >91</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">36.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >92</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">40.306</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >93</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">39.808</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >94</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">31.2</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >95</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">24.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >96</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">21.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >97</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">21.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >98</td><td style="background-color:#c0c0c0; ">Friday</td><td style="background-color:#c0c0c0; text-align:right; ">15.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >99</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >100</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >101</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">14.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >102</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">16.6</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >103</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">18.6</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >104</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">27.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >105</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">28.6</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >106</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">31.9</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >107</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">32.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >108</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">33.2</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >109</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">33.3</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >110</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29.2</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >111</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29.4</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >112</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">26.8</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >113</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">28.7</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >114</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">30.5</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >115</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">29.1</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >116</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">35.3</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >117</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">39.632</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >118</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">36.836</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >119</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">35.725</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >120</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">25.2</td></tr><tr style="height:17px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >121</td><td style="background-color:#c0c0c0; ">*</td><td style="background-color:#c0c0c0; text-align:right; ">20.5
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
segran,


Sample data before the macro:


Excel Workbook
JK
1DayEritrea
2Saturday15.6
315
414.4
514.7
616.8
720
825.7
928
1029.6
1131.88
1232.95
1332.5
1429
1526.95
1627.01
1727.3
1827.4
1930.2
2036.94
2138.72
2236.762
2333.336
2424.5
2521.5
26Tuesday15.8
2714.9
2814.5
2914.7
3015.8
3120.6
3227.4
3329.4
3431.2
3533.3
3636.65
3736.57
3833.11
3929.9
4029.04
4130.19
4230.9
4334.5
4441.7
4542.722
4641.347
4737.84
4833.125
4923.1
50Sunday17.5
5116.8
5216.3
5317.6
5417
5515.7
5623.695
5723.378
5826.52
5927.349
6029.213
6128.916
6227.999
6324.396
6427.233
6523.284
6622.832
6722.507
6834.2
6934.2
7035.4
7129
7222.3
7317.8
74Wednesday17.8
7515.1
7614.3
7714.8
7815.3
7915.8
8027.5
8128.1
8231.7
8332.8
8433.5
8533.3
8629
8725.5
8826
8926.4
9032.6
9136.4
9240.306
9339.808
9431.2
9524.4
9621.7
9721.7
98Friday15.4
9914.7
10014.5
10114.5
10216.6
10318.6
10427.5
10528.6
10631.9
10732.8
10833.2
10933.3
11029.2
11129.4
11226.8
11328.7
11430.5
11529.1
11635.3
11739.632
11836.836
11935.725
12025.2
12120.5
122
Hourly Data





After the macro:


Excel Workbook
JKLMNOPQRSTUV
1DayEritreaSaturday15.6Tuesday15.8Sunday17.5Wednesday17.8Friday15.4
2Saturday15.61514.916.815.114.7
31514.414.516.314.314.5
414.414.714.717.614.814.5
514.716.815.81715.316.6
616.82020.615.715.818.6
72025.727.423.69527.527.5
825.72829.423.37828.128.6
92829.631.226.5231.731.9
1029.631.8833.327.34932.832.8
1131.8832.9536.6529.21333.533.2
1232.9532.536.5728.91633.333.3
1332.52933.1127.9992929.2
142926.9529.924.39625.529.4
1526.9527.0129.0427.2332626.8
1627.0127.330.1923.28426.428.7
1727.327.430.922.83232.630.5
1827.430.234.522.50736.429.1
1930.236.9441.734.240.30635.3
2036.9438.7242.72234.239.80839.632
2138.7236.76241.34735.431.236.836
2236.76233.33637.842924.435.725
2333.33624.533.12522.321.725.2
2424.521.523.117.821.720.5
2521.5
26Tuesday15.8
Hourly Data





Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).


1. Copy the below code, by highlighting the code and pressing the keys CTRL + C
2. Open your workbook
3. Press the keys ALT + F11 to open the Visual Basic Editor
4. Press the keys ALT + I to activate the Insert menu
5. Press M to insert a Standard Module
6. Where the cursor is flashing, paste the code by pressing the keys CTRL + V
7. Press the keys ALT + Q to exit the Editor, and return to Excel
8. To run the macro from Excel, open the workbook, and press ALT + F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.


Code:
Option Explicit
Sub ReorgData()
' hiker95, 05/09/2011
' http://www.mrexcel.com/forum/showthread.php?t=548702
Dim LR As Long, a As Long, NC As Long
Application.ScreenUpdating = True
LR = Cells(Rows.Count, "K").End(xlUp).Row
NC = 11
For a = 2 To LR Step 24
  NC = NC + 2
  Cells(1, NC).Resize(24, 2).Value = Range("J" & a).Resize(24, 2).Value
Next a
Range(Cells(2, 13), Cells(LR, NC + 1)).Columns.AutoFit
Application.ScreenUpdating = True
End Sub


Then run the ReorgData macro.
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,421
Members
452,913
Latest member
JWD210

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