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: 1
Default Type mismatch in VBA LinEst function if range too large

I've stumbled across a very strange problem while performing linea
regression analysis on data with a macro I'm writing.

I've included a link to a sample worksheet I created which illustrate
the problem. Basically, the LINEST function if used as a cell functio
is fine with pretty much any data range thrown at it. However, if yo
attempt to perform a LinEst within VBA, a range of more than 2730 dat
points causes the macro to stop with a type mismatch.

In the worksheet included, all that must be changed are the value i
MinRow and MaxRow. The macro included will attempt to perform a LinEs
calculation and write the parameters to cells along with writing manua
LINEST formulas to cells for Excel to compute. If the range is greate
than 2730 points (i.e. a range of 2-2731 is OK but not 2-2732), th
LINEST values in the cell will update and work fine, but the macro wil
stop and be unable to perform the LinEst calculation in the macro.

I've tested and confirmed this behavior in both Excel 97 and Exce
2000.

If anybody has a clue as to why that happens and (more importantly)
fix for it, I would be most grateful.

http://www.ryanvm.net/linesttest.zi

--
Message posted from http://www.ExcelForum.com

 
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
LINEST function - data range Baffeled Excel Discussion (Misc queries) 2 December 16th 08 07:12 PM
Type Mismatch [email protected] Excel Worksheet Functions 1 May 16th 07 03:29 PM
Type mismatch Patti[_5_] Excel Programming 3 May 30th 04 02:44 PM
Type mismatch Alan Beban[_4_] Excel Programming 0 February 4th 04 08:39 PM


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