ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Linest(known_y, known_x^{1,2,3) (https://www.excelbanter.com/excel-programming/366090-linest-known_y-known_x%5E%7B1-2-3-a.html)

anh82tb via OfficeKB.com

Linest(known_y, known_x^{1,2,3)
 
Please tell me how to express the following expression in VBA
Apllication.worksheetFunction.LinEst(array(4,5,19) ,array(1,3,5)^{1,2,3))
Thanks in advande

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200607/1

Greg Wilson

Linest(known_y, known_x^{1,2,3)
 
Try this:

Sub abc()
Dim arr As Variant, i As Integer
arr = Application.Evaluate("LinEst({4;5;19},{1;3;5}^{1,2 ,3})")
For i = LBound(arr) To UBound(arr)
MsgBox arr(i)
Next
End Sub

"anh82tb via OfficeKB.com" wrote:

Please tell me how to express the following expression in VBA
Apllication.worksheetFunction.LinEst(array(4,5,19) ,array(1,3,5)^{1,2,3))
Thanks in advande

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200607/1



All times are GMT +1. The time now is 03:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com