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: 2
Default slope function with matrix columns as arguments

Hello all:

Here is my setup. I have filled n x 3 matrix with values. I would like to
regress columns 1 and 2 of the matrix, individually, against column 3 using
the Slope application. However, I cannot access the columns correctly to
place as the Slope arguments. A sample of my code is below. Suggestions to
my problem are greatly appreciated. Thanks.


For i = 1 To 2
Value(i) = Application.WorksheetFunction.Slope(Matrix.Applica tion.Columns
(i),
Matrix.Application.Columns(3))

MsgBox ("Value " & Value(i))

Next i

 
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
using slope function with non contiguous cells fallowfz Excel Worksheet Functions 1 May 28th 08 07:51 PM
Need to open the Function Arguments window from VBA for a user defined function. [email protected] Excel Programming 0 June 20th 06 03:53 PM
Anomolous behaviour of slope function. ChasX Excel Worksheet Functions 2 March 5th 06 09:16 PM
Creating a matrix from columns Ernie Sersen Excel Discussion (Misc queries) 2 February 17th 05 04:31 PM
how can i get the slope function to ignore missing data? Delmar Excel Discussion (Misc queries) 0 December 2nd 04 05:55 PM


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