Solved

Trailing twelve-month report

Posted on 2013-01-31
5
784 Views
Last Modified: 2013-02-13
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?
0
Comment
Question by:T4Pam
  • 2
5 Comments
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 38841383
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.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 38842165
A sample file would be helpful :)
0
 

Accepted Solution

by:
T4Pam earned 0 total points
ID: 38866463
I tried to attach a file but the system just spun and jammed.  Thought the file was too big so I tried to skin out all non-essentials. As I was doing that I ran across a file with an Offset formula that seemed to do what I was trying to do. =SUM(OFFSET(A6,-12,1,12,1).  
Perhaps we can attribute it to positive/supportive energy coming across the Internet?  Does that qualify for full points?  I don't know how to award something less.
0
 

Author Closing Comment

by:T4Pam
ID: 38883783
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.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question