Solved

Sum weekly data into monthly periods per rule table

Posted on 2014-09-05
5
113 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
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…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

760 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

21 Experts available now in Live!

Get 1:1 Help Now