#1   Report Post  
lashio
 
Posts: n/a
Default LinEst with operator

My VBA code for LinEst won't work with any operator.
I hope you will have the right code for me. Thanks

Sub LinEst_Test()
Dim reg1 As Double
Range("A1") = 4 ' given
Range("D5") = 8 ' given
Range("D6") = 10 ' given
Range("D7") = 12 ' given
Range("D8") = 16 ' given
' Cells(3, Cells(1, 1)) = Application.LinEst(Range(Cells(5, Cells(1, 1)),
Cells(8, Cells(1, 1)))) * 2 ' won't work
Cells(3, Cells(1, 1)) = Application.LinEst(Range(Cells(5, Cells(1, 1)),
Cells(8, Cells(1, 1))))
reg1 = Cells(3, Cells(1, 1)).Value
Cells(3, Cells(1, 1)) = reg1 * 2
End Sub


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
"OR" operator to evaluate multiple conditions anand Excel Worksheet Functions 1 May 23rd 05 08:49 PM
Linest: problems using broken reference data Alex Excel Worksheet Functions 1 May 18th 05 01:22 PM
linest won't accept multiple reference ranges Alex Gardner Excel Worksheet Functions 3 May 18th 05 01:20 PM
How to use linest with variably sized data arrays? [email protected] Excel Worksheet Functions 0 April 13th 05 04:56 PM
LINEST bug with cubic polynomials in Excel 2003 byundt Excel Worksheet Functions 3 March 21st 05 02:15 PM


All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"