Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default average last four rows in a column

I need some assistance in creating a formula. I need to know how to create a
forumale that will average the last four enteries in a column. The problem I
have is the range to be averaged will change week to week. The sheet is an
inventory counts, and each row is that weeks use of inventory with the most
recent week being the lowest physical row (or highest numbered row).
Ie...first avg row 1-4, next avg 2-5, next 3-6, and so on.

I can average four rows, but can not get the range to change automatically.
The formula is in another sheet to show the last four weeks average useage.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default average last four rows in a column

Try something like this (assumes no empty cells within the range):

Numbers starting in A2 on down:

=IF(COUNT(A:A)<4,"insufficient data",AVERAGE(OFFSET(A2,COUNT(A:A)-1,,-4)))

If there aren't at least 4 values to calculate you'll get: insufficient
data.

Biff

"LoveKeIIy" wrote in message
...
I need some assistance in creating a formula. I need to know how to create
a
forumale that will average the last four enteries in a column. The
problem I
have is the range to be averaged will change week to week. The sheet is
an
inventory counts, and each row is that weeks use of inventory with the
most
recent week being the lowest physical row (or highest numbered row).
Ie...first avg row 1-4, next avg 2-5, next 3-6, and so on.

I can average four rows, but can not get the range to change
automatically.
The formula is in another sheet to show the last four weeks average
useage.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default average last four rows in a column

With the values in column A

=AVERAGE(A1000:INDEX(A1:A1000,LARGE(ROW(A1:A1000)* (A1:A1000<""),4)))

needs to be entered with ctrl + sift & enter


--
Regards,

Peo Sjoblom




"LoveKeIIy" wrote in message
...
I need some assistance in creating a formula. I need to know how to create
a
forumale that will average the last four enteries in a column. The
problem I
have is the range to be averaged will change week to week. The sheet is
an
inventory counts, and each row is that weeks use of inventory with the
most
recent week being the lowest physical row (or highest numbered row).
Ie...first avg row 1-4, next avg 2-5, next 3-6, and so on.

I can average four rows, but can not get the range to change
automatically.
The formula is in another sheet to show the last four weeks average
useage.



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
Average of last three rows against another column [email protected] Excel Worksheet Functions 10 May 8th 07 06:47 AM
calculate average in a column based on criteria in another column sharon t Excel Discussion (Misc queries) 2 May 12th 06 06:07 PM
Sum/average numbers in column A dependant on value in column B Sue Excel Worksheet Functions 3 March 29th 06 06:39 PM
Need to select rows to average based on a value in a different column Randy K New Users to Excel 1 February 15th 06 01:03 AM
Column chart with additional "average" column Bill_S Charts and Charting in Excel 1 October 7th 05 10:58 PM


All times are GMT +1. The time now is 05:42 PM.

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

About Us

"It's about Microsoft Excel"