Solved

Sum weekly data into monthly periods per rule table

Posted on 2014-09-05
5
120 Views
Last Modified: 2014-09-20
Trying to figure out simplest way to consolidate weekly data into monthly period dependent on ending week for period per rule table.  Please see the attached file. Example1.xlsx
0
Comment
Question by:acdecal
[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
  • 3
  • 2
5 Comments
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40306486
This formula will calculate the sum of the weeks as defined in column C:
D11:  =SUM(OFFSET(OFFSET($G$2,0,MATCH(C10+1,$H$5:$EB$5,0)-1),0,1,1,MATCH(C11,$H$5:$EB$5,0)-MATCH(C10,$H$5:$EB$5,0)))

However, you will need to add columns for weeks 1-6 in order to produce a valid result for month 2 (weeks 7 & 8).  Same for weeks 32 -52

I've attached a modified version of your workbook.

Regards,
-Glenn
EE-Example1.xlsx
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40323661
Hi,

Have you had a chance to review and or test my solution?  If so, and it works for you, can you please properly close this question by clicking the "Accept this solution" link above my submission above that answers your question?.  This will help ensure that future searches are meaningful to other EE members.

Otherwise, let us know if you have any other issues.

Thanks,
 -Glenn
0
 

Accepted Solution

by:
acdecal earned 0 total points
ID: 40323811
Glenn,
I couldn't use your solution because it required additional data to work.  I solved the problem by using the SUMIFS function.  See attached.
Thanks for your effort though.
Copy-of-Example1.xlsx
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40323834
Good solution!  Glad you were able to figure it out.
-Glen
0
 

Author Closing Comment

by:acdecal
ID: 40334215
Came up with better solution.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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 will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

751 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