Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2007

Tip: Looking for answers? Try searching our database.

Averaging last 5 cells in a column

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Smith - 28 Feb 2007 19:33 GMT
Hi folks,

In my workbook, I have a bunch of worsheets, where I'm average all numbers
in one column. I'd like to add one more stat, to where I'd like to average
the last 5 #'s in a column. Only thing is that no column ends on the same
row, so I can't specifiy specific cells..

Need some help to develop an average formula to pick the last five entries
in a column.

TIA.

Bob
Toppers - 28 Feb 2007 19:43 GMT
=AVERAGE(OFFSET(INDIRECT("A" & COUNTA(A:A)),-4,0,5))

if there are no blank cells in the column

> Hi folks,
>
[quoted text clipped - 9 lines]
>
> Bob
Bob Smith - 28 Feb 2007 19:59 GMT
Thanks so much for that timely reply Toppers :).

I'm doing it with column B, so I modified your formula to
=AVERAGE(OFFSET(INDIRECT("B" & COUNTA(B:B)),-4,0,5)) . It does an average,
but not the right average. I pull down this data from a web query and cells
B1 & B2 are empty, and cell B3 is the title for the column.

Any help on modifying the formula is appreciated.

Regards, Bob

> =AVERAGE(OFFSET(INDIRECT("A" & COUNTA(A:A)),-4,0,5))
>
[quoted text clipped - 16 lines]
>>
>> Bob
Toppers - 28 Feb 2007 20:19 GMT
Try:

=AVERAGE(OFFSET(INDIRECT("B"&MATCH(LOOKUP(99^99,B:B),B:B,0)),-4,0,5))

> Thanks so much for that timely reply Toppers :).
>
[quoted text clipped - 27 lines]
> >>
> >> Bob
Bob Smith - 28 Feb 2007 20:36 GMT
Thanks Toppers. Works great ... :)

Bob

> Try:
>
[quoted text clipped - 34 lines]
>> >>
>> >> Bob
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.