[TABLE="width: 553"]
<tbody>[TR]
[TD][/TD]
[TD]Section 1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Item No.[/TD]
[TD]Description[/TD]
[TD]Budget[/TD]
[TD]Total Invoice[/TD]
[TD]Current Invoice[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]AAAA[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BBBB[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CCCC[/TD]
[TD]10[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]DDDD[/TD]
[TD]10[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Subtotal[/TD]
[TD]40[/TD]
[TD]18[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Section 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Item No.[/TD]
[TD]Description[/TD]
[TD]Budget[/TD]
[TD]Total Invoice[/TD]
[TD]Current Invoice[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]E[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]F[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]G[/TD]
[TD]10[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Subtotal[/TD]
[TD]30[/TD]
[TD]15[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
I want to automatically generate a summary that looks like this in a different sheet;
[TABLE="width: 208"]
<tbody>[TR]
[TD]Item No.[/TD]
[TD] Current Invoice[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Total[/TD]
[TD="align: right"]7[/TD]
[/TR]
</tbody>[/TABLE]
I cannot change the structure of the original table and it has titles repeated as text for each section. What is a good way to do this? The way I am doing it now is to filter and then copy visible cells into the next sheet and total but I think there must be a way to do dynamically generate this table based on the data entered.
<tbody>[TR]
[TD][/TD]
[TD]Section 1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Item No.[/TD]
[TD]Description[/TD]
[TD]Budget[/TD]
[TD]Total Invoice[/TD]
[TD]Current Invoice[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]AAAA[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]BBBB[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]CCCC[/TD]
[TD]10[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]DDDD[/TD]
[TD]10[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Subtotal[/TD]
[TD]40[/TD]
[TD]18[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Section 2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Item No.[/TD]
[TD]Description[/TD]
[TD]Budget[/TD]
[TD]Total Invoice[/TD]
[TD]Current Invoice[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]E[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]F[/TD]
[TD]10[/TD]
[TD]5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]G[/TD]
[TD]10[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Subtotal[/TD]
[TD]30[/TD]
[TD]15[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
I want to automatically generate a summary that looks like this in a different sheet;
[TABLE="width: 208"]
<tbody>[TR]
[TD]Item No.[/TD]
[TD] Current Invoice[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Total[/TD]
[TD="align: right"]7[/TD]
[/TR]
</tbody>[/TABLE]
I cannot change the structure of the original table and it has titles repeated as text for each section. What is a good way to do this? The way I am doing it now is to filter and then copy visible cells into the next sheet and total but I think there must be a way to do dynamically generate this table based on the data entered.
Last edited: