Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default repost: seeking help on how to automatically shift an average range as new data is added

Cells b20 through m20 contain numerical values by month. These cells
get their data from an external source; using code I gleaned from
here
and elsewhere on the 'net this data will be automatically populated.
That is, today the cells for August 07 through March 08 (f20 - m20)
are blank. When the properly-formatted data source documents for
August, etc. are created data will "appear."

Currently n20 contains the formula:
=IF(SUM(C20:E20)<0,AVERAGE(C20:E20),0)
that calculates the 3-month average for the the months of May, June
and July. If there is no data no average is calculated.


A three month rolling average is what I seek.
I self-populate the cells with a complex if statement, but I'm not
sure if I've got it set right.

The data represents machine fault data. Zero values are not recorded
in the source document. If not present for the month in question, no
data = 0 time associated with the given fault. If no data is
available for the month I would like to fill that month with a 0. If
the source data workbook is not present (as it is for upcoming months)
I would like to just leave the cell blank. Here's the code:

=IF(ISERROR(VLOOKUP($A20,'[source_file.xls]sheet_reference'!$A$16:$E
$44,5,FALSE)),"",(VLOOKUP($A20,'[source_file.xls]sheet_reference'!$A
$16:$E$44,5,FALSE)))

Note that the value_if_true is set to "blank."

I don't want the users to have to go in and edit the average formula.
Any help would be appreciated.
kg

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
seeking help on how to automatically shift an average range as new data is added [email protected] Excel Discussion (Misc queries) 2 August 30th 07 05:59 PM
How to change average range automatically? Yuanhang Excel Discussion (Misc queries) 6 April 16th 07 06:37 AM
automatically expand chart data series as data is added jlarson Charts and Charting in Excel 1 March 9th 06 10:31 AM
Data added to a spreadsheet will not automatically add, help! CBP Excel Discussion (Misc queries) 1 February 21st 06 06:47 PM
Automatically insert fill colour when data is added? suzi Excel Worksheet Functions 2 November 17th 04 02:55 PM


All times are GMT +1. The time now is 12:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"