![]() |
|
#5
|
|||
|
|||
|
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. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
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 |
Noob here - I need a shift calendar by days with count of shift.
|
freeman | Excel | 8 | 09-12-2012 08:45 AM |
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 |