Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default WorksheetFunction.sumproduct limits?

Greetings and TIA for your time

With columns AA and AB blank, the WorksheetFunction.sumproduct in the code
below returns zero as expected. Increasing the size of Array1 & Array2 by 1
element to 5462 or beyond results in a "Type Missmatch" error message.
Please advise

Sub TestSumProduct()
Dim Array1 As Variant
Dim Array2 As Variant

Array1 = Range("AA1:AA5461").Value
Array2 = Range("AB1:AB5461").Value
MsgBox WorksheetFunction.SumProduct(Array1, Array2)
End Sub

--
David
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default WorksheetFunction.sumproduct limits?

Hi,

It might be coincidence, but: 5462 * 12 = the max amount of rows in an
Excel sheet (65532). It might very well be that the sumproduct function
may only contain 5462 * 12 chunks of data
But this is pure speculation

ManualMan

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
WorksheetFunction with VBA Ghislain Marcotte Excel Discussion (Misc queries) 2 February 13th 05 07:08 AM
WorksheetFunction.Sumproduct(syntax... David Excel Programming 9 November 1st 04 09:01 PM
worksheetfunction GMet Excel Programming 2 September 27th 04 05:36 PM
WorkSheetFunction.CountIf & WorkSheetFunction.SumIf with 2 conditions? Etien[_2_] Excel Programming 3 January 13th 04 04:07 PM
WorksheetFunction Stuart[_10_] Excel Programming 3 November 13th 03 12:33 AM


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