Solved

Trailing twelve-month report

Posted on 2013-01-31
5
790 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 80

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This collection of functions covers all the normal rounding methods of just about any numeric value.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

696 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