how to fill down data in one column to match the column length in another column

jwalkerack

Board Regular
Joined
Jun 19, 2013
Messages
81
Hi there ,

i have a data set that is populated in a table , there are two set of data. one are fixed points such as time , location .

The other are variables specifically its a test number and test depth. For each sheet there are different amount of values . One test might have 30 rows of data the next might have 50.

What i want to be able to do is fill down my fixed data so it corresponds to the amount of test present.

So i have my data set below. I only have 1 entry for the first 4 columns , i would like this to be filled down to correspond to the 27 row. i have tried doing a copy and paste recorder . But my problem is that this will only copy to the values in the first test. In because the amount of rows will always change . i was wondering if there is a way of doing this . Thanks a lot Jack

location Test DateTest TypeAction number Report Test NumberDepth
1_234_123430/04/1990longhand 4115115
215110
315111
415164.9
515246.9
615302
715303
815359.9
915356.9
1015405.9
1115417.9
1215445
1315489
1415493
1515491
1615555
1715553
1815682
1915702
2015700.9
2115766
2215828
2315885.8
2415904
2515888
2615685
2715766

<colgroup><col style="mso-width-source:userset;mso-width-alt:5010;width:103pt" width="137"> <col style="mso-width-source:userset;mso-width-alt:4205;width:86pt" width="115"> <col style="mso-width-source:userset;mso-width-alt:3035;width:62pt" width="83"> <col style="mso-width-source:userset;mso-width-alt:7314;width:150pt" width="200"> <col style="mso-width-source:userset;mso-width-alt:4937;width:101pt" width="135"> <col style="mso-width-source:userset;mso-width-alt:4096;width:84pt" width="112"> </colgroup><tbody>
</tbody>
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
So in this case , this would be my desired result


location Test DateTest TypeAction number Report Test NumberDepth
1_234_123430/04/1990longhand 4115115
1_234_123430/04/1990longhand 4215110
1_234_123430/04/1990longhand 4315111
1_234_123430/04/1990longhand 4415164.9
1_234_123430/04/1990longhand 4515246.9
1_234_123430/04/1990longhand 4615302
1_234_123430/04/1990longhand 4715303
1_234_123430/04/1990longhand 4815359.9
1_234_123430/04/1990longhand 4915356.9
1_234_123430/04/1990longhand 41015405.9
1_234_123430/04/1990longhand 41115417.9
1_234_123430/04/1990longhand 41215445
1_234_123430/04/1990longhand 41315489
1_234_123430/04/1990longhand 41415493
1_234_123430/04/1990longhand 41515491
1_234_123430/04/1990longhand 41615555
1_234_123430/04/1990longhand 41715553
1_234_123430/04/1990longhand 41815682
1_234_123430/04/1990longhand 41915702
1_234_123430/04/1990longhand 42015700.9
1_234_123430/04/1990longhand 42115766
1_234_123430/04/1990longhand 42215828
1_234_123430/04/1990longhand 42315885.8
1_234_123430/04/1990longhand 42415904
1_234_123430/04/1990longhand 42515888
1_234_123430/04/1990longhand 42615685
1_234_123430/04/1990longhand 42715766

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
location Test DateTest TypeAction number Report Test NumberDepth
1_234_123430/04/1990longhand 4115115
1_234_123430/04/1990longhand 4215110
1_234_123430/04/1990longhand 4315111
1_234_123430/04/1990longhand 4415164.9
1_234_123430/04/1990longhand 4515246.9
1_234_123430/04/1990longhand 4615302
1_234_123430/04/1990longhand 4715303
1_234_123430/04/1990longhand 4815359.9
1_234_123430/04/1990longhand 4915356.9
1_234_123430/04/1990longhand 41015405.9
1_234_123430/04/1990longhand 41115417.9
1_234_123430/04/1990longhand 41215445
1_234_123430/04/1990longhand 41315489
1_234_123430/04/1990longhand 41415493
1_234_123430/04/1990longhand 41515491
1_234_123430/04/1990longhand 41615555
1_234_123430/04/1990longhand 41715553
1_234_123430/04/1990longhand 41815682
1_234_123430/04/1990longhand 41915702
1_234_123430/04/1990longhand 42015700.9
1_234_123430/04/1990longhand 42115766
1_234_123430/04/1990longhand 42215828
1_234_123430/04/1990longhand 42315885.8
1_234_123430/04/1990longhand 42415904
1_234_123430/04/1990longhand 42515888
1_234_123430/04/1990longhand 42615685
1_234_123430/04/1990longhand 42715766

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Sorry in my last post ,


it have repeated the data set twice . i just want it once . But what i would like is the macro to automatically pick up how many rows there are in the column dats sets with multipy data .

So in this case it would result in this

location Test DateTest TypeAction number Report Test NumberDepth
1_234_123430/04/1990longhand 4115115
1_234_123430/04/1990longhand 4215110
1_234_123430/04/1990longhand 4315111
1_234_123430/04/1990longhand 4415164.9
1_234_123430/04/1990longhand 4515246.9
1_234_123430/04/1990longhand 4615302
1_234_123430/04/1990longhand 4715303
1_234_123430/04/1990longhand 4815359.9
1_234_123430/04/1990longhand 4915356.9
1_234_123430/04/1990longhand 41015405.9
1_234_123430/04/1990longhand 41115417.9
1_234_123430/04/1990longhand 41215445
1_234_123430/04/1990longhand 41315489
1_234_123430/04/1990longhand 41415493
1_234_123430/04/1990longhand 41515491
1_234_123430/04/1990longhand 41615555
1_234_123430/04/1990longhand 41715553
1_234_123430/04/1990longhand 41815682
1_234_123430/04/1990longhand 41915702
1_234_123430/04/1990longhand 42015700.9
1_234_123430/04/1990longhand 42115766
1_234_123430/04/1990longhand 42215828
1_234_123430/04/1990longhand 42315885.8
1_234_123430/04/1990longhand 42415904
1_234_123430/04/1990longhand 42515888
1_234_123430/04/1990longhand 42615685
1_234_123430/04/1990longhand 42715766
1_234_123430/04/1990longhand 42815768
1_234_123430/04/1990longhand 42915770
1_234_123430/04/1990longhand 43015772
1_234_123430/04/1990longhand 43115774
1_234_123430/04/1990longhand 43215776
1_234_123430/04/1990longhand 43315778
1_234_123430/04/1990longhand 43415780
1_234_123430/04/1990longhand 43515782
1_234_123430/04/1990longhand 43615784
1_234_123430/04/1990longhand 43715786
1_234_123430/04/1990longhand 43815788
1_234_123430/04/1990longhand 43915790
1_234_123430/04/1990longhand 44015792
1_234_123430/04/1990longhand 44115794
1_234_123430/04/1990longhand 44215796
1_234_123430/04/1990longhand 44315798
1_234_123430/04/1990longhand 44415800
1_234_123430/04/1990longhand 44515802
1_234_123430/04/1990longhand 44615804
1_234_123430/04/1990longhand 44715806
1_234_123430/04/1990longhand 44815808
1_234_123430/04/1990longhand 44915810
1_234_123430/04/1990longhand 45015812

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,101
Messages
6,123,096
Members
449,096
Latest member
provoking

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