Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In VBA, SUMPRODUCT can not be used as an array formula (which is what you
describe). You would need to pass a virtual formula to the evaluate method. However, it won't work on a 3D array nor will anything slice a 2D array out of a 3D array as a single command. That said, looping through the array and building your own result should be very fast. -- Regards, Tom Ogilvy "ExcelMonkey" wrote in message ... I have two arrays that are 3D. Each dimension is populated within Three tier For Next loop. The first array has data, the second array has dates associated with its companion element in the first array: DataArray1(0,0,0) and DateArray2(0,0,0) are related. I want to Average and or SUM the column data from: DataArray1(0,0,0) to DataArray1(1000,100,0) using a conditional logic on the dates in the DateArray I want to use something similar to the SUMPRODUCT formula using the unitary operators "--". I am trying to avoid using Pivot Tables if possible. Perhaps even a function would work. Any ideas on how I do this? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trying to make both averages AND sums of one spreadsheet of data | Excel Discussion (Misc queries) | |||
Trying to make averages AND sums of one spreadsheet of information | Excel Worksheet Functions | |||
Help with Averages/Sums of values returned from IF function | Excel Discussion (Misc queries) | |||
Arrays and Averages | Excel Worksheet Functions | |||
More Questions Sums and Averages by Date | Excel Discussion (Misc queries) |