I have a column of numbers, some blank, and continually adding additional
numbers to the column. What would the formula be to continually averge the
last 7 numbers entered?
Been up all night trying to figure it out. Thank you for your help.
The following **array-entered** formula should do that:
(see below for important notes)
=AVERAGE(OFFSET(A1,-1+MAX(ISNUMBER(rng)*ROW(rng)),0,-7))
If there might be blanks (or cells containing non-numeric information to be
ignored, then try:
=AVERAGE(N(OFFSET(A1,-1+LARGE(ISNUMBER(rng)*ROW(rng),{1,2,3,4,5,6,7}),0)))
To **array-enter** a formula, hold down <ctrl><shift> while hitting <enter>.
Excel will place braces {...} around the formula if you did it correctly.
Note that rng is a reference to the column in which you have the values. If
using a version of Excel prior to 2007, rng cannot refer to the entire column,
but could be as large as A1: A65535.
Note that A1 represents the topmost cell in rng
--ron