coreysmith
New Member
- Joined
- Apr 6, 2010
- Messages
- 2
Thank you in advance for any help. I've looked through several threads already and can't seem to find one that fits my exact scenario.
I have a workbook that has a sheet called CustInvData, this sheet contains 4,421 rows of invoice transaction data for 178 customers starting on row 2 (headers on row 1). I need to split the transaction data for each customer out into a workbook template based on the customer name in column A. I need each workbook named by the customer name along with a month and year (example: Bellsouth-0911.xls), this should create 178 unique workbooks. And since we sometimes have to go back and rerun invoices for previous months, I'll need to control the month and year manually in the code.
The parsed data needs to be copied to a pre-formatted invoice template. This template has 2 sheets, Sheet1 is called 'Product Summary', this is a table that uses VLOOKUP functions to read the data in Sheet2 called 'Product Details', this is the sheet the parsed data needs to be copied to for each customer invoice. The 'Product Details' sheet has formatted rows 1 thru 11, row 11 being the header row for the data from CustInvData to be copied. So the parsed data needs to start at row 12.
Last, once the data has been copied into the 'Product Details' sheet, I need the data to be SubTotaled at each change in column J (Product) and use the 'Sum' function to add a Subtotal in column L (Retail Price) for each unique product category.
Example data below, I've simplified it (the actual data array spans from columns A to Y)
Customer Name Product Retail Price
ABC Company AVMPCR 10
ABC Company AVMPCA 15
ABC Company AVMPCR 10
DelawareSouth AMPFLD 20
DelawareSouth EMPFLO 30
DelawareSouth EMPFLO 30
DelawareSouth EMPFLO 30
BellwetherCom APPRAIS 55
BellwetherCom APPRAIS 55
BellwetherCom APPRAIS 55
BellwetherCom APPRAIS 55
BellwetherCom APPRAIS 55
I'm a bit of a novice with macros, but I know Excel pretty well. Please bare with me as I'm learning as I go. Thanks again for your help in advance.
Using Excel 2007 running on Windows Vista
I have a workbook that has a sheet called CustInvData, this sheet contains 4,421 rows of invoice transaction data for 178 customers starting on row 2 (headers on row 1). I need to split the transaction data for each customer out into a workbook template based on the customer name in column A. I need each workbook named by the customer name along with a month and year (example: Bellsouth-0911.xls), this should create 178 unique workbooks. And since we sometimes have to go back and rerun invoices for previous months, I'll need to control the month and year manually in the code.
The parsed data needs to be copied to a pre-formatted invoice template. This template has 2 sheets, Sheet1 is called 'Product Summary', this is a table that uses VLOOKUP functions to read the data in Sheet2 called 'Product Details', this is the sheet the parsed data needs to be copied to for each customer invoice. The 'Product Details' sheet has formatted rows 1 thru 11, row 11 being the header row for the data from CustInvData to be copied. So the parsed data needs to start at row 12.
Last, once the data has been copied into the 'Product Details' sheet, I need the data to be SubTotaled at each change in column J (Product) and use the 'Sum' function to add a Subtotal in column L (Retail Price) for each unique product category.
Example data below, I've simplified it (the actual data array spans from columns A to Y)
Customer Name Product Retail Price
ABC Company AVMPCR 10
ABC Company AVMPCA 15
ABC Company AVMPCR 10
DelawareSouth AMPFLD 20
DelawareSouth EMPFLO 30
DelawareSouth EMPFLO 30
DelawareSouth EMPFLO 30
BellwetherCom APPRAIS 55
BellwetherCom APPRAIS 55
BellwetherCom APPRAIS 55
BellwetherCom APPRAIS 55
BellwetherCom APPRAIS 55
I'm a bit of a novice with macros, but I know Excel pretty well. Please bare with me as I'm learning as I go. Thanks again for your help in advance.
Using Excel 2007 running on Windows Vista