shimon.amar
Board Regular
- Joined
- Nov 20, 2012
- Messages
- 93
Dear fellows,
My boss gave me an assignment that I can't find a way to do it by macro.
assume I have database with lines -
<tbody>
</tbody>
What I basically need to do is to duplicate each row 3 times and put the duplicated rows beneath the original rows.
For column "Sub-code" need to put numbers for each copied line (1, 2, 3).
For column "Amount" need to divide by 3 for each copied line.
Basically the data after macro should be like
<tbody>
</tbody>
****** id="cke_pastebin" style="position: absolute; top: 382px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
<tbody>
</tbody></body>Thank in advance, very much appreciated
My boss gave me an assignment that I can't find a way to do it by macro.
assume I have database with lines -
Name | Code Number | Sub-code | Date | Amount |
John | 1234 | 12.12.12 | 100 | |
Jack | 5678 | 12.12.13 | 300 | |
Joe | 9876 | 11.12.12 | 430 | |
<tbody>
</tbody>
What I basically need to do is to duplicate each row 3 times and put the duplicated rows beneath the original rows.
For column "Sub-code" need to put numbers for each copied line (1, 2, 3).
For column "Amount" need to divide by 3 for each copied line.
Basically the data after macro should be like
Name | Code Number | Sub-code | Date | Amount |
John | 1234 | 12.12.12 | 100 | |
John | 1234 | 1 | 12.12.12 | 33.33 |
John | 1234 | 2 | 12.12.12 | 33.33 |
John | 1234 | 3 | 12.12.12 | 33.33 |
Jack | 5678 | 12.12.13 | 300 | |
Jack | 5678 | 1 | 12.12.13 | 100 |
Jack | 5678 | 2 | 12.12.13 | 100 |
Jack | 5678 | 3 | 12.12.13 | 100 |
<tbody>
</tbody>
****** id="cke_pastebin" style="position: absolute; top: 382px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
1234 |
<tbody>
</tbody>