Formula to sum a range of weekly data in buckets of 2, 3, 4 or more weeks and return the result as an array

kderoeck

New Member
Joined
Oct 24, 2012
Messages
6
Hi,

I'm looking for a formula that in the first phase would return an array of aggregated order intake values based on available weekly order intake. The aggregation needs to group 2,3,4,5 or more weeks (definable by the user) into bigger chunks and preferably return the result as an array.
In the second phase I would then use that array formula to calculate the covariance (cov=stdeva/average).

Example:
WK24</SPAN>WK23</SPAN>WK22</SPAN>WK21</SPAN>WK20</SPAN>WK19</SPAN>WK18</SPAN>WK17</SPAN>WK16</SPAN>WK15</SPAN>WK14</SPAN>WK13</SPAN>WK12</SPAN>WK11</SPAN>WK10</SPAN>WK9</SPAN>WK8</SPAN>WK7</SPAN>WK6</SPAN>WK5</SPAN>WK4</SPAN>WK3</SPAN>WK2</SPAN>WK1</SPAN>
74</SPAN>79</SPAN>68</SPAN>100</SPAN>18</SPAN>69</SPAN>69</SPAN>19</SPAN>53</SPAN>48</SPAN>95</SPAN>41</SPAN>18</SPAN>100</SPAN>11</SPAN>39</SPAN>60</SPAN>80</SPAN>13</SPAN>21</SPAN>45</SPAN>59</SPAN>88</SPAN>12</SPAN>

<TBODY>
</TBODY><COLGROUP><COL span=15><COL span=9></COLGROUP>

Grouping this weekly order intake data in buckets of 4 weeks at a time would return an array of: {321, 175, 237, 168, 174, 204}

This array would then allow me to calculate the COV = stdeva {321, 175, 237, 168, 174, 204} / average {321, 175, 237, 168, 174, 204} = 0.276

Preferably I want to do the entire calculation in one go. My guess is that this would be possible using an arrayformula (combined with a sumproduct for the grouping of the weeks?) ... but I'm stuck.

Please help ;o)

Kind regards,
Koen
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,214,569
Messages
6,120,286
Members
448,953
Latest member
Dutchie_1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top