Hello all,
This is my first time posting and I am hoping you can help me out with this problem in Excel.
I have a Final sheet which has locations repeated a fixed n number of times (in this case, n=2) and has its own property columns as shown below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Property3[/TD]
[TD]Property4[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to duplicate rows for individual locations and its accompanying property 3 and 4 columns as well as add two new property columns based on Master List as shown below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Property1[/TD]
[TD]Property2[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]a[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]b[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]a[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]a[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]b[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
Modified Final sheet should look like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Property1[/TD]
[TD]Property2[/TD]
[TD]Property3[/TD]
[TD]Property4[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]a[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]a[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]b[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]b[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]a[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]a[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]a[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]a[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]b[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]b[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Locations X, Y and XX have been duplicated twice as it has had to capture the unique values in property columns in 1 and 2. Z only once as it has unique Property 1 and 2 values.
Thanks a lot!
This is my first time posting and I am hoping you can help me out with this problem in Excel.
I have a Final sheet which has locations repeated a fixed n number of times (in this case, n=2) and has its own property columns as shown below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Property3[/TD]
[TD]Property4[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would like to duplicate rows for individual locations and its accompanying property 3 and 4 columns as well as add two new property columns based on Master List as shown below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Property1[/TD]
[TD]Property2[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]a[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]b[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]a[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]a[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]b[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
Modified Final sheet should look like:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Location[/TD]
[TD]Property1[/TD]
[TD]Property2[/TD]
[TD]Property3[/TD]
[TD]Property4[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]a[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]a[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]a[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]b[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]b[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]a[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Z[/TD]
[TD]a[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]a[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]a[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]b[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]XX[/TD]
[TD]b[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Locations X, Y and XX have been duplicated twice as it has had to capture the unique values in property columns in 1 and 2. Z only once as it has unique Property 1 and 2 values.
Thanks a lot!