Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]() 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
![]() |
|||
|
|||
![]() 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
![]() |
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Averaging | Excel Discussion (Misc queries) | |||
Averaging noncontiguous numbers ignoring zeros? | Excel Worksheet Functions | |||
Averaging the last 5 entries in a row | Excel Discussion (Misc queries) | |||
2 part question on averaging | Excel Discussion (Misc queries) | |||
selective averaging | Excel Worksheet Functions |