What cell are you putting it in?
Is there anything else at all in row 34 after the column that has the last
number in, which you said was O34
When you array entered, did you click into the formula in the formula bar,
or hit F2 to go into edit mode, and then whilst holding down CTRL+SHIFT hit
the ENTER key. if entered corrcetly the formula will display in the formula
bar with curly braces around it, eg {formula}. These braces CANNOT be
entered manually, it is not the same.
--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03
----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission

----------------------------------------------------------------------------
Geo said:
I have tried copying the formula and pasting it to the cell where I want the
average to be displayed and I get a "0" result. I have tried entering it also
with the <shift><Ctrl><Enter> also and still get the same results. There is
data in G:34-O:34.(9 cells accross row 34). Do I have to change the formula
any?
Thanks,
Geo
Ken Wright said:
=AVERAGE(OFFSET($F$34,,COUNTA(G34:IV34),,-(MIN(COUNTA(G34:IV34),5))))
Will handle it when you have less than 5 values in your range
--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03
--------------------------------------------------------------------------
--
It's easier to beg forgiveness than ask permission
--------------------------------------------------------------------------
--