LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default Moving Average of Array : Can use built-in functions?

If the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook, the
SubArray function can be used for this purpose. E.g.,

Application.Max(SubArray(vData,2,4,1,5)) will return the maximum from
the values in the subarray comprised of Columns 2 thru 4, Rows 1 thru 5
of vData.

The SubArray function can be used this way to specify any contiguous
"range" of data in a 1-D or 2-D array.

Alan Beban

Sing wrote:
. . . Thank you for your reply.
There is some complication in my case.

Say I only want to find the minimum of the last 10 elements in vData. Is
Excel flexible enough to specify the start and end element of the array in
which to find the minimum?

 
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
Moving Average of values within an array Eric Johnson Excel Programming 1 April 2nd 07 12:14 AM
Using Built in Functions in VB Code Jim Conrady Excel Programming 4 August 19th 06 04:29 PM
Can I do this with built in functions? Conan Kelly Excel Worksheet Functions 3 December 6th 05 08:52 PM
Viewing built-in functions Jim[_36_] Excel Programming 1 December 29th 03 07:56 PM
Viewing built-in functions Jim[_36_] Excel Programming 2 December 29th 03 12:59 PM


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