Formulas for Copying Down

K

Ken

Excel2003

Cols H, I, J contain:

Col H ... Values 1, 2, 3 ... 100 (Ascend)
Col I ... Random Values (Ascend)
Col J ... Values L1, L2, L3 ... L50 (Ascend)

I am looking for easiest way to copy down the following 3 Cols.

Col A ... Repeat each value from Col H (50 times) ... thru value 100
Col C ... Repeat each Value from Col I (50 times) ...
Col D ... Values L1, L2, L3 thru L50 ... (100 Times)

Will look something like:

1 ... Value from Cell I2 ... L1
1 ... Value from Cell I2 ... L2
1 ... Value from Cell I2 ... L3
50 Times ... followed by
2 ... Value from Cell I3 ... L1
2 ... Value from Cell I3 ... L2
2 ... Value from Cell I3 ... L3
50 Times etc out to value 100

Total File size approx 5000 Records

Thanks ... Kha
 
L

Luke M

Col A formula:
=INT((ROW()+49)/50)

Col B formula:
=INDEX(I:I,A1)

Col C formula:
="L"&MOD(ROW()-1,50)+1
 
J

Jacob Skaria

Hi Ken

From the samples you posted I understand your data starts from Row2. If your
data starts from Row1 adjust the formulas to suit.

Apply this formula in A2 and copy/drag the formula to B2..Now copy the
formula down as required for ColA and ColB

=OFFSET(H$2,INT((ROW($A1)-1)/50),)

Apply the below in cell C2
=OFFSET($J$2,MOD(ROW(A1)-1,50),)
 
K

Ken

Perfect ... Thanks ... Kha

Jacob Skaria said:
Hi Ken

From the samples you posted I understand your data starts from Row2. If your
data starts from Row1 adjust the formulas to suit.

Apply this formula in A2 and copy/drag the formula to B2..Now copy the
formula down as required for ColA and ColB

=OFFSET(H$2,INT((ROW($A1)-1)/50),)

Apply the below in cell C2
=OFFSET($J$2,MOD(ROW(A1)-1,50),)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top