A
AmyTaylor
Hi everyone, hope someone can help 
I only want to perform this calculation where the sheet name begins
with the number 5 or 6 or the letter T.
I have a number of sheets each contain the same layout of data, with
row 1 containing a header row - however the number of rows containing
data can change.
Each column must be reported unless stated otherwise:
Column A contains a code
Column B contains a code (either "Included" or "Excluded")
Column C contans a code but that doesnt need reported
Column D contains a name relating to thc code in Column C, it needs
reported
Column E to AD contains data which I want to sum.
The sum, probably something like Sumproduct (but i could be wrong)
needs to sum each unique combination of Code A and B (eg:
concatenation).
How do I write this in a function, and preferably in VBA so that it can
be automated for each sheet.
Many many thanks for any help !
Love Amy xxx

I only want to perform this calculation where the sheet name begins
with the number 5 or 6 or the letter T.
I have a number of sheets each contain the same layout of data, with
row 1 containing a header row - however the number of rows containing
data can change.
Each column must be reported unless stated otherwise:
Column A contains a code
Column B contains a code (either "Included" or "Excluded")
Column C contans a code but that doesnt need reported
Column D contains a name relating to thc code in Column C, it needs
reported
Column E to AD contains data which I want to sum.
The sum, probably something like Sumproduct (but i could be wrong)
needs to sum each unique combination of Code A and B (eg:
concatenation).
How do I write this in a function, and preferably in VBA so that it can
be automated for each sheet.
Many many thanks for any help !
Love Amy xxx
