#1   Report Post  
Ninjafer
 
Posts: n/a
Default Averaging


I have a column with monthly volumes, but occasionally there will be a
day or two were no volume is entered. I need to find the average of
the last 4 volumes entered. Please see attachment.


The volume for June-05 should be the average of 1692.6, 1532.9, 1761.5
and 1787.9. Is there a formula that will find the most recent 4
volumes and average them.

Thanks for any help you can give.


+-------------------------------------------------------------------+
|Filename: Question.pdf |
|Download: http://www.excelforum.com/attachment.php?postid=3547 |
+-------------------------------------------------------------------+

--
Ninjafer
------------------------------------------------------------------------
Ninjafer's Profile: http://www.excelforum.com/member.php...o&userid=24711
View this thread: http://www.excelforum.com/showthread...hreadid=382770

  #3   Report Post  
Domenic
 
Posts: n/a
Default


Assuming that Column B contains your data...

C4, copied down:

=AVERAGE(SUBTOTAL(9,OFFSET($B$1,LARGE(IF($B$1:B4< "no
volume",ROW($B$1:B4)-ROW($B$1)+1),{1,2,3,4})-1,0)))

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

Ninjafer Wrote:
I have a column with monthly volumes, but occasionally there will be a
day or two were no volume is entered. I need to find the average of
the last 4 volumes entered. Please see attachment.


The volume for June-05 should be the average of 1692.6, 1532.9, 1761.5
and 1787.9. Is there a formula that will find the most recent 4
volumes and average them.

Thanks for any help you can give.



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=382770

  #4   Report Post  
Ninjafer
 
Posts: n/a
Default


Thanks for the help! I don't know how it works, but I'm happy it does.
I know my team will be thrilled.


--
Ninjafer
------------------------------------------------------------------------
Ninjafer's Profile: http://www.excelforum.com/member.php...o&userid=24711
View this thread: http://www.excelforum.com/showthread...hreadid=382770

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
Averaging GWit Excel Discussion (Misc queries) 1 May 29th 05 02:46 AM
Averaging noncontiguous numbers ignoring zeros? Mike Excel Worksheet Functions 19 March 4th 05 02:05 AM
Averaging the last 5 entries in a row Geo Excel Discussion (Misc queries) 5 January 3rd 05 01:13 AM
2 part question on averaging Geo Excel Discussion (Misc queries) 4 January 2nd 05 10:35 PM
selective averaging Wazooli Excel Worksheet Functions 3 December 10th 04 09:25 PM


All times are GMT +1. The time now is 02:55 AM.

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"