Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike K
 
Posts: n/a
Default Last several values in a column

Oh Wise Ones,

The below array formula finds the average of the last 5
values in a column. How do I modify it to display the last
5 values of the column?

=AVERAGE(A65535:INDEX(A1:A65535,LARGE(ROW(1:65535) *
(A1:A65535<""),5)))

Thanks,
Mike
  #2   Report Post  
Domenic
 
Posts: n/a
Default


Try the following...

B1, copied down:

=INDEX(A:A,LARGE(IF($A$1:$A$65535<"",ROW($A$1:$A$ 65535)),ROW()-ROW($B$1)+1))

or for the reverse order...

=INDEX(A:A,LARGE(IF($A$1:$A$65535<"",ROW($A$1:$A$ 65535)),ROW($B$6)-ROW()))

Both these formula need to be confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

Mike K Wrote:
Oh Wise Ones,

The below array formula finds the average of the last 5
values in a column. How do I modify it to display the last
5 values of the column?

=AVERAGE(A65535:INDEX(A1:A65535,LARGE(ROW(1:65535) *
(A1:A65535<""),5)))

Thanks,
Mike



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

  #3   Report Post  
Mike K
 
Posts: n/a
Default

Domenic,
Oh, that is so beautiful!

Many thanks,
Mike

-----Original Message-----

Try the following...

B1, copied down:

=INDEX(A:A,LARGE(IF($A$1:$A$65535<"",ROW

($A$1:$A$65535)),ROW()-ROW($B$1)+1))

or for the reverse order...

=INDEX(A:A,LARGE(IF($A$1:$A$65535<"",ROW

($A$1:$A$65535)),ROW($B$6)-ROW()))

Both these formula need to be confirmed with

CONTROL+SHIFT+ENTER.

Hope this helps!

Mike K Wrote:
Oh Wise Ones,

The below array formula finds the average of the last 5
values in a column. How do I modify it to display the

last
5 values of the column?

=AVERAGE(A65535:INDEX(A1:A65535,LARGE(ROW(1:65535) *
(A1:A65535<""),5)))

Thanks,
Mike



--
Domenic
----------------------------------------------------------

--------------
Domenic's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=10785
View this thread:

http://www.excelforum.com/showthread...hreadid=316181

.

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
If column A and column B have values how do i get the total in co. reness Excel Discussion (Misc queries) 1 January 9th 05 11:38 PM
PivotTable Column Field Values Michael Rekas Excel Discussion (Misc queries) 2 December 10th 04 02:18 PM
Finding the max of a column where values less than a specified number Mark Silka Excel Worksheet Functions 1 November 17th 04 03:14 PM
Can you average data in 1 column based on a range of values in another? kman24 Excel Worksheet Functions 2 November 17th 04 02:09 PM
Can I count values in column 1 if criteria in column 2 are met confounded office user Excel Worksheet Functions 2 November 9th 04 12:02 PM


All times are GMT +1. The time now is 05:42 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"