Copy and Paste

Shane50GT

New Member
Joined
Jul 27, 2021
Messages
6
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I am hoping to get some help on copy and paste! Seems like something simple and probably is but here goes....I need to repeat several data sets that have 6 rows of data down a single column, the data sets point to various other sheets but the constant is that I need each row within the data set to increase by 1 each time I paste the data set, however, it is increasing each row 6 due to the 6 individual lines of data...See example below..... (I will need to copy and paste the data sets around 60 times).

Direct Craft Description=Sheet2!$B9
Number of Craft=Sheet2!$D9
S.T. Pay Rate=Sheet2!$K9
O.T Pay Rate=Sheet2!$K88
S.T. Billable Rate=Sheet3!$R9
O.T. Billable Rate=Sheet3!$S9
COPIED AND PASTED FROM ABOVE
Direct Craft Description=Sheet2!$B17<<<How can I make this paste as =Sheet2!$B10
Number of Craft=Sheet2!$D17<<<How can I make this paste as =Sheet2!$D10
S.T. Pay Rate=Sheet2!$K17<<<How can I make this paste as =Sheet2!$K10
O.T Pay Rate=Sheet2!$K96<<<How can I make this paste as =Sheet2!$K89
S.T. Billable Rate=Sheet3!$R17<<<How can I make this paste as =Sheet3!$R10
O.T. Billable Rate=Sheet3!$S17<<<How can I make this paste as =Sheet3!$S10
 
You're probably better off sticking with what you have, but here's what I had in mind with the SPILL functionality:

Book1
ABCD
1# of groups# of spaces
232
3Direct Craft DescriptionB9
4Number of CraftD9
5S.T. Pay RateK9
6O.T. Pay RateK88
7S.T. Billable RateR9
8O.T. Billable RateS9
9
10
11Direct Craft DescriptionB10
12Number of CraftD10
13S.T. Pay RateK10
14O.T. Pay RateK89
15S.T. Billable RateR10
16O.T. Billable RateS10
17
18
19Direct Craft DescriptionB11
20Number of CraftD11
21S.T. Pay RateK11
22O.T. Pay RateK90
23S.T. Billable RateR11
24O.T. Billable RateS11
25
26
Sheet1
Cell Formulas
RangeFormula
C3:C26C3=CHOOSE(MOD(SEQUENCE((B2+6)*A2,,0),B2+6)+1,"Direct Craft Description","Number of Craft","S.T. Pay Rate","O.T. Pay Rate","S.T. Billable Rate","O.T. Billable Rate","","","","")
D3:D26D3=CHOOSE(MOD(SEQUENCE((B2+6)*A2,,0),B2+6)+1,INDEX(Sheet2!$B:$B,INT(SEQUENCE((B2+6)*A2,,0)/(B2+6))+9),INDEX(Sheet2!$D:$D,INT(SEQUENCE((B2+6)*A2,,0)/(B2+6))+9),INDEX(Sheet2!$K:$K,INT(SEQUENCE((B2+6)*A2,,0)/(B2+6))+9),INDEX(Sheet2!$K:$K,INT(SEQUENCE((B2+6)*A2,,0)/(B2+6))+88),INDEX(Sheet3!$R:$R,INT(SEQUENCE((B2+6)*A2,,0)/(B2+6))+9),INDEX(Sheet3!$S:$S,INT(SEQUENCE((B2+6)*A2,,0)/(B2+6))+9),"","","","")
Dynamic array formulas.


You only need to enter the 2 formulas once. Change the A2 and B2 values, and it'll repeat down as far as you want. The C3 formula for the titles is not bad, but the D3 formula is a bit of a mess. If you have the LET function (not every Excel 365 has that yet), it could be simplified.
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,213,504
Messages
6,114,020
Members
448,543
Latest member
MartinLarkin

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