T4Pam
asked on
Trailing twelve-month report
I have an Excel file that calculates sales reports and compensation. There is a data worksheet that is updated monthly. The worksheet needs to calculate each month's results with a twelve-month look-back.that data.
Ideally, each new month would be added automatically, dropping off the 13th prior month so that the calculation worksheet always displays 12 months (although the data worksheet will "grow." If the old calculation rows became "Hidden" when a new row was added, it would theoretically be possible to run the report for any period.
I know it is possible to use an Offset function (command) to get the calculation (although I don't really know how to do that). But I don't know how to add rows (copy, paste/insert, ??)
I know enough about Excel and VBA to be dangerous but not enough to be able to do what I want to do.
Can anyone help?
Ideally, each new month would be added automatically, dropping off the 13th prior month so that the calculation worksheet always displays 12 months (although the data worksheet will "grow." If the old calculation rows became "Hidden" when a new row was added, it would theoretically be possible to run the report for any period.
I know it is possible to use an Offset function (command) to get the calculation (although I don't really know how to do that). But I don't know how to add rows (copy, paste/insert, ??)
I know enough about Excel and VBA to be dangerous but not enough to be able to do what I want to do.
Can anyone help?
Personally I'd store the data in a database and then pull the required data into excel. that or just sql reporting features to generate the report.
A sample file would be helpful :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
First response was not an answer. As alternative advice, it was insufficient to even move the conversation forward.
The second response indicated willingness/ability to help but my explanation was obviously not clear enough. Asked me to provide a sample file. I tried but the operation failed. I stripped out some non-essential data and tried again to upload. No success.
Need parameters for file upload.
While trying to get the file smaller and less complex, I ran across what appeared to be an answer. Still need to build it out and may need more/different help but, for now, I have what I need.
The second response indicated willingness/ability to help but my explanation was obviously not clear enough. Asked me to provide a sample file. I tried but the operation failed. I stripped out some non-essential data and tried again to upload. No success.
Need parameters for file upload.
While trying to get the file smaller and less complex, I ran across what appeared to be an answer. Still need to build it out and may need more/different help but, for now, I have what I need.