VBA code to insert information between two rows

Joined
Oct 14, 2014
Messages
1
01/01/2015</SPAN>00:00</SPAN>4.64</SPAN>01/01/2015</SPAN>05:21</SPAN>1.65</SPAN>
01/01/2015</SPAN>11:35</SPAN>4.95</SPAN>
01/01/2015</SPAN>01:00</SPAN>3.89</SPAN>01/01/2015</SPAN>17:42</SPAN>1.7</SPAN>
02/01/2015</SPAN>00:00</SPAN>5.01</SPAN>
01/01/2015</SPAN>02:00</SPAN>2.98</SPAN>02/01/2015</SPAN>06:21</SPAN>1.57</SPAN>
02/01/2015</SPAN>12:33</SPAN>5.1</SPAN>
01/01/2015</SPAN>03:00</SPAN>2.25</SPAN>02/01/2015</SPAN>18:42</SPAN>1.48</SPAN>
03/01/2015</SPAN>00:57</SPAN>5.13</SPAN>
01/01/2015</SPAN>04:00</SPAN>1.84</SPAN>03/01/2015</SPAN>07:09</SPAN>1.46</SPAN>
03/01/2015</SPAN>13:24</SPAN>5.25</SPAN>
01/01/2015</SPAN>05:00</SPAN>1.66</SPAN>03/01/2015</SPAN>19:33</SPAN>1.25</SPAN>
04/01/2015</SPAN>01:46</SPAN>5.24</SPAN>
01/01/2015</SPAN>06:00</SPAN>1.72</SPAN>04/01/2015</SPAN>07:49</SPAN>1.35</SPAN>
04/01/2015</SPAN>14:09</SPAN>5.37</SPAN>
01/01/2015</SPAN>07:00</SPAN>2.15</SPAN>04/01/2015</SPAN>20:16</SPAN>1.08</SPAN>
05/01/2015</SPAN>02:30</SPAN>5.31</SPAN>
01/01/2015</SPAN>08:00</SPAN>2.89</SPAN>05/01/2015</SPAN>08:25</SPAN>1.27</SPAN>
05/01/2015</SPAN>14:49</SPAN>5.44</SPAN>
01/01/2015</SPAN>09:00</SPAN>3.71</SPAN>05/01/2015</SPAN>20:55</SPAN>0.97</SPAN>
06/01/2015</SPAN>03:09</SPAN>5.34</SPAN>
01/01/2015</SPAN>10:00</SPAN>4.42</SPAN>06/01/2015</SPAN>08:58</SPAN>1.22</SPAN>
06/01/2015</SPAN>15:28</SPAN>5.46</SPAN>
01/01/2015</SPAN>11:00</SPAN>4.87</SPAN>06/01/2015</SPAN>21:30</SPAN>0.93</SPAN>
07/01/2015</SPAN>03:46</SPAN>5.31</SPAN>
01/01/2015</SPAN>12:00</SPAN>4.91</SPAN>07/01/2015</SPAN>09:27</SPAN>1.22</SPAN>
07/01/2015</SPAN>16:04</SPAN>5.42</SPAN>
01/01/2015</SPAN>13:00</SPAN>4.45</SPAN>07/01/2015</SPAN>22:00</SPAN>0.97</SPAN>
08/01/2015</SPAN>04:21</SPAN>5.25</SPAN>
01/01/2015</SPAN>14:00</SPAN>3.61</SPAN>08/01/2015</SPAN>09:54</SPAN>1.27</SPAN>
08/01/2015</SPAN>16:39</SPAN>5.34</SPAN>
01/01/2015</SPAN>15:00</SPAN>2.71</SPAN>08/01/2015</SPAN>22:27</SPAN>1.05</SPAN>
09/01/2015</SPAN>04:57</SPAN>5.15</SPAN>
01/01/2015</SPAN>16:00</SPAN>2.08</SPAN>09/01/2015</SPAN>10:21</SPAN>1.37</SPAN>
09/01/2015</SPAN>17:15</SPAN>5.23</SPAN>
01/01/2015</SPAN>17:00</SPAN>1.77</SPAN>09/01/2015</SPAN>22:54</SPAN>1.17</SPAN>
10/01/2015</SPAN>05:33</SPAN>5.03</SPAN>
01/01/2015</SPAN>18:00</SPAN>1.72</SPAN>10/01/2015</SPAN>10:50</SPAN>1.51</SPAN>
10/01/2015</SPAN>17:51</SPAN>5.08</SPAN>
01/01/2015</SPAN>19:00</SPAN>2.02</SPAN>10/01/2015</SPAN>23:24</SPAN>1.34</SPAN>
11/01/2015</SPAN>06:12</SPAN>4.88</SPAN>
01/01/2015</SPAN>20:00</SPAN>2.72</SPAN>11/01/2015</SPAN>11:21</SPAN>1.69</SPAN>
11/01/2015</SPAN>18:30</SPAN>4.92</SPAN>
01/01/2015</SPAN>21:00</SPAN>3.53</SPAN>12/01/2015</SPAN>00:00</SPAN>1.55</SPAN>
12/01/2015</SPAN>06:54</SPAN>4.72</SPAN>
01/01/2015</SPAN>22:00</SPAN>4.26</SPAN>12/01/2015</SPAN>11:57</SPAN>1.91</SPAN>
12/01/2015</SPAN>19:14</SPAN>4.74</SPAN>
01/01/2015</SPAN>23:00</SPAN>4.8</SPAN>13/01/2015</SPAN>00:45</SPAN>1.77</SPAN>
13/01/2015</SPAN>07:41</SPAN>4.58</SPAN>

<TBODY>
</TBODY><COLGROUP><COL span=2><COL><COL><COL><COL><COL></COLGROUP>
I have data in list as shown above. The info in the left column is for tide data showing the height at each hour. The info on the right is High & Low water times. I want to insert the data on right hand side between the relevant rows on the left hand side.
The first row of data should be between 05:00 & 06:00
the second between 11:00 & 12:00
the third between 17:00 & 18:00 etc
But, what code will insert the info and can be expanded to complete 1 month's data?
Thanks
 

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Watch MrExcel Video

Forum statistics

Threads
1,127,205
Messages
5,623,364
Members
415,969
Latest member
Rey99

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
Top