Solved

Trailing twelve-month report

Posted on 2013-01-31
5
775 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 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
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
Comment Utility
A sample file would be helpful :)
0
 

Accepted Solution

by:
T4Pam earned 0 total points
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now