Hello,
I was given an assignment and I really appreciate if someone can help me to create the VBA code for it.
Basically the problem I have is as shown in Figure 1, and the outcome I need to obtain is in Figure 2:
Explanation:
[TABLE="width: 1117"]
<tbody>[TR]
[TD="colspan: 11"]1) The fruits should match their corresponding boxes in Figure 1 table as shown in the example of the green highlight.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 11"]2) The cross from the fruit's side should match with the cross from the box's side to determine which box should the fruit be in.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 15"]3) Some crosses on one side do not have corresponding crosses on the other side as shown in orange highlighted example. Such redundant 'floating' crosses can happen in both fruit's side and box's side. Such cases should be ignored for tabulation in Figure 2 table.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 16"]4) Some crosses depict duplicated information. For example, the information of Box 4 in watermelon appeared twice in Figure 1 but the Figure 2 table on watermelon should only show one 'Box 4' .[/TD]
[/TR]
[TR]
[TD="colspan: 11"]5) Thereafter, a table of fruits with corresponding boxes must be created by VBA on a new Excel sheet as shown in Figure 2.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 11"]6) The table of Figure 2 should not show duplicated entries of boxes and sort the boxes starting from the smallest number.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you even if you are just viewing this thread and I wish you a happy festive season and a good 2015 ahead
I was given an assignment and I really appreciate if someone can help me to create the VBA code for it.
Basically the problem I have is as shown in Figure 1, and the outcome I need to obtain is in Figure 2:
Explanation:
[TABLE="width: 1117"]
<tbody>[TR]
[TD="colspan: 11"]1) The fruits should match their corresponding boxes in Figure 1 table as shown in the example of the green highlight.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 11"]2) The cross from the fruit's side should match with the cross from the box's side to determine which box should the fruit be in.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 15"]3) Some crosses on one side do not have corresponding crosses on the other side as shown in orange highlighted example. Such redundant 'floating' crosses can happen in both fruit's side and box's side. Such cases should be ignored for tabulation in Figure 2 table.[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 16"]4) Some crosses depict duplicated information. For example, the information of Box 4 in watermelon appeared twice in Figure 1 but the Figure 2 table on watermelon should only show one 'Box 4' .[/TD]
[/TR]
[TR]
[TD="colspan: 11"]5) Thereafter, a table of fruits with corresponding boxes must be created by VBA on a new Excel sheet as shown in Figure 2.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 11"]6) The table of Figure 2 should not show duplicated entries of boxes and sort the boxes starting from the smallest number.[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you even if you are just viewing this thread and I wish you a happy festive season and a good 2015 ahead
