#1   Report Post  
Posted to microsoft.public.excel.misc
Aoife
 
Posts: n/a
Default formula help


Two rows: 1 and 3
Row 1 contains w/c dates
Row 2 contains £ deposits during those weeks; some weeks are blank

How can i get Excel to return the value of the average of the five most
recent deposits (excluding those left blank)?
I don't know which formula to use.

thanks in advance.

Aoife.


--
Aoife
------------------------------------------------------------------------
Aoife's Profile: http://www.excelforum.com/member.php...o&userid=33191
View this thread: http://www.excelforum.com/showthread...hreadid=531229

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default formula help


In A4 put
=IF(COUNTIF(B4:$IV4,"0")<5,IF(A30,A3,""),"")
and formula-drag that to the right to cover your entries.
This will give you the 5 rightmost entries, which you can total and
divide by 5 to get your average.

--

Aoife Wrote:
Two rows: 1 and 3
Row 1 contains w/c dates
Row 2 contains £ deposits during those weeks; some weeks are blank

How can i get Excel to return the value of the average of the five most
recent deposits (excluding those left blank)?
I don't know which formula to use.

thanks in advance.

Aoife.



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=531229

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default formula help

=AVERAGE(T2:INDEX(2:2,LARGE(IF(2:2<"",COLUMN(2:2)-MIN(COLUMN(2:2))+1),MIN(5
,COUNT(2:2)))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Aoife" wrote in
message ...

Two rows: 1 and 3
Row 1 contains w/c dates
Row 2 contains £ deposits during those weeks; some weeks are blank

How can i get Excel to return the value of the average of the five most
recent deposits (excluding those left blank)?
I don't know which formula to use.

thanks in advance.

Aoife.


--
Aoife
------------------------------------------------------------------------
Aoife's Profile:

http://www.excelforum.com/member.php...o&userid=33191
View this thread: http://www.excelforum.com/showthread...hreadid=531229



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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 07:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"