LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Problems with application.worksheetfunction.correl

Using VBA, I populated a two dimensional array with values. I want use
various "rows" and "columns" of the array as inputs into an Excel
function. For example:

Dim arr As Variant
Dim answer as Double

arr = Range("A1:B10").Value
answer =
application.worksheetfunction.correl(arr(column1), arr(column2))

something that would have the same result as:
answer =
application.worksheetfunction.correl(range("A1:A10 "),range("B1:B10"))

I'd prefer not to paste the array back to a sheet to run the
calculation.

I'd prefer not to populate one dimensional arrays based on the columns
of the two dimensional array.

Basically, I'm looking to easily address subsets/subranges of a multi-
dimensioned array.
 
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
Need help with Application.WorksheetFunction Ayo Excel Discussion (Misc queries) 4 May 14th 08 11:13 PM
application.worksheetfunction Ozgur Pars[_2_] Excel Programming 4 July 18th 06 08:11 AM
Application.worksheetfunction Terry V Excel Programming 7 October 12th 04 05:48 AM
Application.WorksheetFunction.Correl BHARATH RAJAMANI Excel Programming 2 September 22nd 04 07:49 PM
Using Application.WorksheetFunction.Ln(...) in VBA doco Excel Programming 4 August 25th 03 01:08 PM


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