Hi
I have two worksheets. Worksheet 'detail' contains details of sales transactions (values). Each row shows a Customer code, and transaction values. The transactions appear in multiple columns under different 'groups', as below.
image does not work so please see cut & paste from Excel
[TABLE="width: 387"]
<colgroup><col><col span="5"></colgroup><tbody>[TR]
[TD]Customer[/TD]
[TD]10CC[/TD]
[TD]10CE[/TD]
[TD]10IH[/TD]
[TD]10IJ[/TD]
[TD]10QE[/TD]
[/TR]
[TR]
[TD]A01[/TD]
[TD]528.6[/TD]
[TD]0[/TD]
[TD]550.8898[/TD]
[TD]0[/TD]
[TD]25.99[/TD]
[/TR]
[TR]
[TD]A01[/TD]
[TD]17.4[/TD]
[TD]665.22[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]44.33[/TD]
[/TR]
[TR]
[TD]A01[/TD]
[TD]22.45[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]22.66[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]B02[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]393.72[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]B02[/TD]
[TD]0[/TD]
[TD]123.78[/TD]
[TD]36.06911[/TD]
[TD]0[/TD]
[TD]1.12[/TD]
[/TR]
[TR]
[TD]B02[/TD]
[TD]0[/TD]
[TD]22[/TD]
[TD]14.4129[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]88.34[/TD]
[TD]4597.003[/TD]
[TD]0[/TD]
[TD]15.15[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]220.3848[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]160.716[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]1173.903[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
I need to be able to summarise this data in another worksheet which has the same basic layout, but contains a summary total for each Customer, as below.
image does not work so please see cut & paste from Excel
[TABLE="width: 387"]
<colgroup><col><col span="5"></colgroup><tbody>[TR]
[TD]Customer[/TD]
[TD]10CC[/TD]
[TD]10CE[/TD]
[TD]10IH[/TD]
[TD]10IJ[/TD]
[TD]10QE[/TD]
[/TR]
[TR]
[TD]A01[/TD]
[TD]568.45[/TD]
[TD]665.22[/TD]
[TD]550.8898[/TD]
[TD]22.66[/TD]
[TD]70.32[/TD]
[/TR]
[TR]
[TD]B02[/TD]
[TD]0[/TD]
[TD]145.78[/TD]
[TD]444.202[/TD]
[TD]0[/TD]
[TD]1.12[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]88.34[/TD]
[TD]6152.007[/TD]
[TD]0[/TD]
[TD]15.15
[/TD]
[/TR]
</tbody>[/TABLE]
NOTE: this is part of a much larger VB set of codes, and normally includes 50+ customers and around 30 groups, but I am after the principle and thought it best to minimise the examples.
Any help on this would be really appreciated, as I have spent hours looking at code snippets.
I have two worksheets. Worksheet 'detail' contains details of sales transactions (values). Each row shows a Customer code, and transaction values. The transactions appear in multiple columns under different 'groups', as below.

image does not work so please see cut & paste from Excel
[TABLE="width: 387"]
<colgroup><col><col span="5"></colgroup><tbody>[TR]
[TD]Customer[/TD]
[TD]10CC[/TD]
[TD]10CE[/TD]
[TD]10IH[/TD]
[TD]10IJ[/TD]
[TD]10QE[/TD]
[/TR]
[TR]
[TD]A01[/TD]
[TD]528.6[/TD]
[TD]0[/TD]
[TD]550.8898[/TD]
[TD]0[/TD]
[TD]25.99[/TD]
[/TR]
[TR]
[TD]A01[/TD]
[TD]17.4[/TD]
[TD]665.22[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]44.33[/TD]
[/TR]
[TR]
[TD]A01[/TD]
[TD]22.45[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]22.66[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]B02[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]393.72[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]B02[/TD]
[TD]0[/TD]
[TD]123.78[/TD]
[TD]36.06911[/TD]
[TD]0[/TD]
[TD]1.12[/TD]
[/TR]
[TR]
[TD]B02[/TD]
[TD]0[/TD]
[TD]22[/TD]
[TD]14.4129[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]88.34[/TD]
[TD]4597.003[/TD]
[TD]0[/TD]
[TD]15.15[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]220.3848[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]160.716[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]1173.903[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
I need to be able to summarise this data in another worksheet which has the same basic layout, but contains a summary total for each Customer, as below.

image does not work so please see cut & paste from Excel
[TABLE="width: 387"]
<colgroup><col><col span="5"></colgroup><tbody>[TR]
[TD]Customer[/TD]
[TD]10CC[/TD]
[TD]10CE[/TD]
[TD]10IH[/TD]
[TD]10IJ[/TD]
[TD]10QE[/TD]
[/TR]
[TR]
[TD]A01[/TD]
[TD]568.45[/TD]
[TD]665.22[/TD]
[TD]550.8898[/TD]
[TD]22.66[/TD]
[TD]70.32[/TD]
[/TR]
[TR]
[TD]B02[/TD]
[TD]0[/TD]
[TD]145.78[/TD]
[TD]444.202[/TD]
[TD]0[/TD]
[TD]1.12[/TD]
[/TR]
[TR]
[TD]G02[/TD]
[TD]0[/TD]
[TD]88.34[/TD]
[TD]6152.007[/TD]
[TD]0[/TD]
[TD]15.15
[/TD]
[/TR]
</tbody>[/TABLE]
NOTE: this is part of a much larger VB set of codes, and normally includes 50+ customers and around 30 groups, but I am after the principle and thought it best to minimise the examples.
Any help on this would be really appreciated, as I have spent hours looking at code snippets.
Last edited: