Solved

Trailing twelve-month report

Posted on 2013-01-31
5
798 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 81

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

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