Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default using linest excel function from msaccess with multidimensiona

Worked fine for me. the formula in B12 was

=C12*1+D12*2+E12*3+5
copied down to 18. Then in the immediate window:

v = Range("B12:B18")
v1 = Range("C12:E18")
v2 = Application.Linest(v,v1,True,false)
? v2(1)
3
? v2(2)
2
? v2(3)
0.999999999999999
? v2(4)
5.00000000000001

--
Regards,
Tom Ogilvy


"jobxyz" wrote in message
...
Thanks Michel

Your solution works fine for a simple X array. The problem arrises when x

is
a 2D array - which is what I need

"michelxld" wrote:


Hello

for the linest Function , you may try


Dim y_connus(), x_connus()
y_connus = Array(5, 2, 1)
x_connus = Array(6, 3, 4)
Range("A1") = WorksheetFunction.LinEst(y_connus, x_connus)


Regards ,
michel


--
michelxld
------------------------------------------------------------------------
michelxld's Profile:

http://www.excelforum.com/member.php...o&userid=17367
View this thread:

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




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
Excel 2003 Linest Function Bug JimK Excel Worksheet Functions 12 October 3rd 06 01:50 PM
using linest excel function from msaccess with multidimensional ar jobxyz Excel Worksheet Functions 1 December 26th 05 02:11 PM
linest function Mitch Excel Programming 2 December 5th 05 10:43 PM
Run An MSAccess VBA Function From Excel Frank Excel Programming 1 April 1st 05 01:51 PM
LinEst function Darius Blaszijk Excel Programming 3 June 10th 04 03:12 AM


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

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"