jwalkerack
Board Regular
- Joined
- Jun 19, 2013
- Messages
- 81
Hello everyone , i m not sure if i m saying this right but here goes . i have data set of two values . For example time versus distance. For each time value there is a corresponding distance. i would like to be able have a macro that inserts a row between every time and distance point i have . Next i would like to have a macro that automatically calcuates and populates the difference between the rows.
So my original data set would be as follows
<tbody>
</tbody>
This is it with inserted rows one after each column that has data
<tbody>
</tbody>
i know the calculation to work out the difference between the 2 value. Is the bottom value subtracted by the top value and then halved and added to the bottom value . IE 2-1= 1/2= 0.5 +1= 1.5 so 1.5 would be the second row entry for distance field . Is it possible to have a two macros that will constantly allow me to double my data set ?
i want to have something like this in the end and be able to repeat the several times , each time increasing my dataset
<colgroup><col><col></colgroup><tbody>
</tbody>
<colgroup><col><col></colgroup><tbody>
</tbody>
So my original data set would be as follows
time | Distance |
6 | 1 |
9 | 2 |
15 | 3 |
25 | 4 |
67 | 5 |
89 | 6 |
100 | 7 |
140 | 8 |
189 | 9 |
220 | |
<tbody>
</tbody>
This is it with inserted rows one after each column that has data
time | Distance |
6 | 1 |
9 | 2 |
15 | 3 |
25 | 4 |
67 | 5 |
89 | 6 |
100 | 7 |
140 | 8 |
189 | 9 |
220 | 10 |
<tbody>
</tbody>
i know the calculation to work out the difference between the 2 value. Is the bottom value subtracted by the top value and then halved and added to the bottom value . IE 2-1= 1/2= 0.5 +1= 1.5 so 1.5 would be the second row entry for distance field . Is it possible to have a two macros that will constantly allow me to double my data set ?
i want to have something like this in the end and be able to repeat the several times , each time increasing my dataset
time | Distance |
6 | 1 |
7.5 | 1.5 |
9 | 2 |
12 | 2.5 |
15 | 3 |
20 | 3.5 |
25 | 4 |
46 | 4.5 |
67 | 5 |
78 | 5.5 |
89 | 6 |
94.5 | 6.5 |
100 | 7 |
120 | 7.5 |
140 | 8 |
164.5 | 8.5 |
189 | 9 |
204.5 | 9.5 |
220 | 10 |
<colgroup><col><col></colgroup><tbody>
</tbody>
6 | 1 |
7.5 | 1.5 |
9 | 2 |
12 | 2.5 |
15 | 3 |
20 | 3.5 |
25 | 4 |
46 | 4.5 |
67 | 5 |
78 | 5.5 |
89 | 6 |
94.5 | 6.5 |
100 | 7 |
120 | 7.5 |
140 | 8 |
164.5 | 8.5 |
189 | 9 |
204.5 | 9.5 |
220 | 10 |
<colgroup><col><col></colgroup><tbody>
</tbody>
Last edited: