Hello, I am trying to work on a large excel file where I need to cycle through unique ID's and copy specific formula's and text "x" number of rows, to include the unique ID, then the corresponding formula's in the columns to the right. In my specific case, I can copy/paste rows 2 - 37 which includes the text and formula's I need, but I need to find a way to change the unique ID every "x" number of rows (in my case 37) that are copied/pasted, then start on the next unique ID to copy/paste the 37 rows above. The unique ID is used to calculate using a separate worksheet of data in the workbook.
For example,
Unique ID's (will be thousands in total)
100001
100002
100003
100004
I need the unique ID pasted into column F but also paste in specific formula's and text that exist in columns A - CC. In this example, I am showing 3 rows per each unique ID, but I really need 37.
End result would be:
[TABLE="width: 100"]
<tbody>[TR]
[TD]100001[/TD]
[TD]text 1[/TD]
[TD]Formula 1[/TD]
[TD]Formula 2[/TD]
[TD]Formula 3[/TD]
[/TR]
[TR]
[TD]100001[/TD]
[TD]Text 1[/TD]
[TD]Formula 1[/TD]
[TD]Formula 2[/TD]
[TD]Formula 3[/TD]
[/TR]
[TR]
[TD]100001[/TD]
[TD]text 1[/TD]
[TD]Formula 1[/TD]
[TD]Formula 2[/TD]
[TD]Formula 3[/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]text 1[/TD]
[TD]Formula 1[/TD]
[TD]Formula 2[/TD]
[TD]Formula 3[/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]text 1[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]text 1[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]100003[/TD]
[TD]text 1[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]100003[/TD]
[TD]text 1[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
****** id="cke_pastebin" style="position: absolute; top: 436px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
</body>
For example,
Unique ID's (will be thousands in total)
100001
100002
100003
100004
I need the unique ID pasted into column F but also paste in specific formula's and text that exist in columns A - CC. In this example, I am showing 3 rows per each unique ID, but I really need 37.
End result would be:
[TABLE="width: 100"]
<tbody>[TR]
[TD]100001[/TD]
[TD]text 1[/TD]
[TD]Formula 1[/TD]
[TD]Formula 2[/TD]
[TD]Formula 3[/TD]
[/TR]
[TR]
[TD]100001[/TD]
[TD]Text 1[/TD]
[TD]Formula 1[/TD]
[TD]Formula 2[/TD]
[TD]Formula 3[/TD]
[/TR]
[TR]
[TD]100001[/TD]
[TD]text 1[/TD]
[TD]Formula 1[/TD]
[TD]Formula 2[/TD]
[TD]Formula 3[/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]text 1[/TD]
[TD]Formula 1[/TD]
[TD]Formula 2[/TD]
[TD]Formula 3[/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]text 1[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]100002[/TD]
[TD]text 1[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]100003[/TD]
[TD]text 1[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]100003[/TD]
[TD]text 1[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]
[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
****** id="cke_pastebin" style="position: absolute; top: 436px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 100"]
<tbody>[TR]
[TD]Formula 1[/TD]
[/TR]
</tbody>[/TABLE]
</body>