Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 05-30-2014, 04:46 PM
PressF1 PressF1 is offline 30 Shift Rolling Average Mac OS X 30 Shift Rolling Average Office 2013
Novice
 
Join Date: May 2014
Location: Sydney, Australia
Posts: 3
PressF1 is on a distinguished road
Default

I think there are two ways of looking at this. First is how you structure your data - often people constrain the problem by how they setup their worksheet or by how others ask for the information to be presented. If you added information in reverse chronological order (i.e. add new data at the top of the table) there is an easier solution.

Anyway, using the structure you have provided try adding a reverse counter in column F (in F68 =G68+F69). Then your formula should look like this:
=SUMPRODUCT(H15:H68,N((F15:F68)<31))/SUMPRODUCT(G15:G68,N((F15:F68)<31))

Remove the hardcode 31 and replace it with a reference to a cell where you can change it if requirements change (e.g. average of the last 20 shifts) and you will have a dynamic solution.

The disadvantage of this solution is that the SUMPRODUCT is an array formula and the more data you have in your workbook where you use this formula may slow down calculation times.
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
30 Shift Rolling Average Average if and sumif jennamae Excel 4 01-17-2014 05:10 AM
Coordinate rolling text in a webinar ar8294 PowerPoint 1 11-28-2012 12:55 AM
30 Shift Rolling Average Noob here - I need a shift calendar by days with count of shift. freeman Excel 8 09-12-2012 08:45 AM
30 Shift Rolling Average Average of many rows speedycorn1 Excel 1 10-30-2010 07:54 PM
Data From One Slide Rolling Up To Another Kdubb4410 PowerPoint 0 07-28-2010 11:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:24 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft