asyamonique
Well-known Member
- Joined
- Jan 29, 2008
- Messages
- 1,286
- Office Version
- 2013
- Platform
- Windows
Hello,
Please help me with given sample tables below.
First table shows the original datas...
Second table is the results what I wanted to get by clicking the button all datas will randomly changed with below conditions.
1. Column A and Column B will be related datas.(If A1 goes to another row, B1 will follow that..)
2. Column C and Column D will not be related datas they will be shuffled in same columns!
3. Column E will be related with column A datas.
Many Thanks
<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>
[TABLE="width: 401"]
<colgroup><col><col span="2"><col><col></colgroup><tbody>[TR]
[TD]COLUMN-A-[/TD]
[TD]COLUMN-B-[/TD]
[TD]COLUMN-C-[/TD]
[TD]COLUMN-D-[/TD]
[TD]COLUMN-E-[/TD]
[/TR]
[TR]
[TD]name10[/TD]
[TD]abc10[/TD]
[TD]def13[/TD]
[TD]ghi11[/TD]
[TD]100,000[/TD]
[/TR]
[TR]
[TD]name12[/TD]
[TD]abc12[/TD]
[TD]def8[/TD]
[TD]ghi13[/TD]
[TD]120,000[/TD]
[/TR]
[TR]
[TD]name19[/TD]
[TD]abc19[/TD]
[TD]def2[/TD]
[TD]ghi1[/TD]
[TD]190,000[/TD]
[/TR]
[TR]
[TD]name9[/TD]
[TD]abc9[/TD]
[TD]def15[/TD]
[TD]ghi19[/TD]
[TD]90,000[/TD]
[/TR]
[TR]
[TD]name17[/TD]
[TD]abc17[/TD]
[TD]def4[/TD]
[TD]ghi10[/TD]
[TD]170,000[/TD]
[/TR]
[TR]
[TD]name1[/TD]
[TD]abc1[/TD]
[TD]def17[/TD]
[TD]ghi5[/TD]
[TD]10,000[/TD]
[/TR]
[TR]
[TD]name11[/TD]
[TD]abc11[/TD]
[TD]def14[/TD]
[TD]ghi2[/TD]
[TD]110,000[/TD]
[/TR]
[TR]
[TD]name7[/TD]
[TD]abc7[/TD]
[TD]def18[/TD]
[TD]ghi9[/TD]
[TD]70,000[/TD]
[/TR]
[TR]
[TD]name8[/TD]
[TD]abc8[/TD]
[TD]def10[/TD]
[TD]ghi6[/TD]
[TD]80,000[/TD]
[/TR]
[TR]
[TD]name15[/TD]
[TD]abc15[/TD]
[TD]def12[/TD]
[TD]ghi15[/TD]
[TD]150,000[/TD]
[/TR]
[TR]
[TD]name4[/TD]
[TD]abc4[/TD]
[TD]def7[/TD]
[TD]ghi7[/TD]
[TD]40,000[/TD]
[/TR]
[TR]
[TD]name18[/TD]
[TD]abc18[/TD]
[TD]def16[/TD]
[TD]ghi14[/TD]
[TD]180,000[/TD]
[/TR]
[TR]
[TD]name5[/TD]
[TD]abc5[/TD]
[TD]def6[/TD]
[TD]ghi12[/TD]
[TD]50,000[/TD]
[/TR]
[TR]
[TD]name3[/TD]
[TD]abc3[/TD]
[TD]def9[/TD]
[TD]ghi17[/TD]
[TD]30,000[/TD]
[/TR]
[TR]
[TD]name14[/TD]
[TD]abc14[/TD]
[TD]def11[/TD]
[TD]ghi4[/TD]
[TD]140,000[/TD]
[/TR]
[TR]
[TD]name6[/TD]
[TD]abc6[/TD]
[TD]def3[/TD]
[TD]ghi3[/TD]
[TD]60,000[/TD]
[/TR]
[TR]
[TD]name20[/TD]
[TD]abc20[/TD]
[TD]def19[/TD]
[TD]ghi16[/TD]
[TD]200,000[/TD]
[/TR]
[TR]
[TD]name2[/TD]
[TD]abc2[/TD]
[TD]def20[/TD]
[TD]ghi20[/TD]
[TD]20,000[/TD]
[/TR]
[TR]
[TD]name16[/TD]
[TD]abc16[/TD]
[TD]def1[/TD]
[TD]ghi8[/TD]
[TD]160,000[/TD]
[/TR]
[TR]
[TD]name13[/TD]
[TD]abc13[/TD]
[TD]def5[/TD]
[TD]ghi18[/TD]
[TD]130,000[/TD]
[/TR]
</tbody>[/TABLE]
Please help me with given sample tables below.
First table shows the original datas...
Second table is the results what I wanted to get by clicking the button all datas will randomly changed with below conditions.
1. Column A and Column B will be related datas.(If A1 goes to another row, B1 will follow that..)
2. Column C and Column D will not be related datas they will be shuffled in same columns!
3. Column E will be related with column A datas.
Many Thanks
COLUMN-A- | COLUMN-B- | COLUMN-C- | COLUMN-D- | COLUMN-E- |
name1 | abc1 | def1 | ghi1 | 10,000 |
name2 | abc2 | def2 | ghi2 | 20,000 |
name3 | abc3 | def3 | ghi3 | 30,000 |
name4 | abc4 | def4 | ghi4 | 40,000 |
name5 | abc5 | def5 | ghi5 | 50,000 |
name6 | abc6 | def6 | ghi6 | 60,000 |
name7 | abc7 | def7 | ghi7 | 70,000 |
name8 | abc8 | def8 | ghi8 | 80,000 |
name9 | abc9 | def9 | ghi9 | 90,000 |
name10 | abc10 | def10 | ghi10 | 100,000 |
name11 | abc11 | def11 | ghi11 | 110,000 |
name12 | abc12 | def12 | ghi12 | 120,000 |
name13 | abc13 | def13 | ghi13 | 130,000 |
name14 | abc14 | def14 | ghi14 | 140,000 |
name15 | abc15 | def15 | ghi15 | 150,000 |
name16 | abc16 | def16 | ghi16 | 160,000 |
name17 | abc17 | def17 | ghi17 | 170,000 |
name18 | abc18 | def18 | ghi18 | 180,000 |
name19 | abc19 | def19 | ghi19 | 190,000 |
name20 | abc20 | def20 | ghi20 | 200,000 |
<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>
[TABLE="width: 401"]
<colgroup><col><col span="2"><col><col></colgroup><tbody>[TR]
[TD]COLUMN-A-[/TD]
[TD]COLUMN-B-[/TD]
[TD]COLUMN-C-[/TD]
[TD]COLUMN-D-[/TD]
[TD]COLUMN-E-[/TD]
[/TR]
[TR]
[TD]name10[/TD]
[TD]abc10[/TD]
[TD]def13[/TD]
[TD]ghi11[/TD]
[TD]100,000[/TD]
[/TR]
[TR]
[TD]name12[/TD]
[TD]abc12[/TD]
[TD]def8[/TD]
[TD]ghi13[/TD]
[TD]120,000[/TD]
[/TR]
[TR]
[TD]name19[/TD]
[TD]abc19[/TD]
[TD]def2[/TD]
[TD]ghi1[/TD]
[TD]190,000[/TD]
[/TR]
[TR]
[TD]name9[/TD]
[TD]abc9[/TD]
[TD]def15[/TD]
[TD]ghi19[/TD]
[TD]90,000[/TD]
[/TR]
[TR]
[TD]name17[/TD]
[TD]abc17[/TD]
[TD]def4[/TD]
[TD]ghi10[/TD]
[TD]170,000[/TD]
[/TR]
[TR]
[TD]name1[/TD]
[TD]abc1[/TD]
[TD]def17[/TD]
[TD]ghi5[/TD]
[TD]10,000[/TD]
[/TR]
[TR]
[TD]name11[/TD]
[TD]abc11[/TD]
[TD]def14[/TD]
[TD]ghi2[/TD]
[TD]110,000[/TD]
[/TR]
[TR]
[TD]name7[/TD]
[TD]abc7[/TD]
[TD]def18[/TD]
[TD]ghi9[/TD]
[TD]70,000[/TD]
[/TR]
[TR]
[TD]name8[/TD]
[TD]abc8[/TD]
[TD]def10[/TD]
[TD]ghi6[/TD]
[TD]80,000[/TD]
[/TR]
[TR]
[TD]name15[/TD]
[TD]abc15[/TD]
[TD]def12[/TD]
[TD]ghi15[/TD]
[TD]150,000[/TD]
[/TR]
[TR]
[TD]name4[/TD]
[TD]abc4[/TD]
[TD]def7[/TD]
[TD]ghi7[/TD]
[TD]40,000[/TD]
[/TR]
[TR]
[TD]name18[/TD]
[TD]abc18[/TD]
[TD]def16[/TD]
[TD]ghi14[/TD]
[TD]180,000[/TD]
[/TR]
[TR]
[TD]name5[/TD]
[TD]abc5[/TD]
[TD]def6[/TD]
[TD]ghi12[/TD]
[TD]50,000[/TD]
[/TR]
[TR]
[TD]name3[/TD]
[TD]abc3[/TD]
[TD]def9[/TD]
[TD]ghi17[/TD]
[TD]30,000[/TD]
[/TR]
[TR]
[TD]name14[/TD]
[TD]abc14[/TD]
[TD]def11[/TD]
[TD]ghi4[/TD]
[TD]140,000[/TD]
[/TR]
[TR]
[TD]name6[/TD]
[TD]abc6[/TD]
[TD]def3[/TD]
[TD]ghi3[/TD]
[TD]60,000[/TD]
[/TR]
[TR]
[TD]name20[/TD]
[TD]abc20[/TD]
[TD]def19[/TD]
[TD]ghi16[/TD]
[TD]200,000[/TD]
[/TR]
[TR]
[TD]name2[/TD]
[TD]abc2[/TD]
[TD]def20[/TD]
[TD]ghi20[/TD]
[TD]20,000[/TD]
[/TR]
[TR]
[TD]name16[/TD]
[TD]abc16[/TD]
[TD]def1[/TD]
[TD]ghi8[/TD]
[TD]160,000[/TD]
[/TR]
[TR]
[TD]name13[/TD]
[TD]abc13[/TD]
[TD]def5[/TD]
[TD]ghi18[/TD]
[TD]130,000[/TD]
[/TR]
</tbody>[/TABLE]