Thread
:
application.sumproduct help please
View Single Post
#
2
Posted to microsoft.public.excel.programming
Tushar Mehta
external usenet poster
Posts: 1,071
application.sumproduct help please
Summarize how?
Type mismatch where?
VBA doesn't do array formulas.
Consider a PivotTable; let XL do the grunt work.
--
Regards,
Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
In article ,
says...
Sheet1 contains approx 2,000 rows of data, I want to summarise this sheet on
Sheet2.
So far I have this:
Sub Macro1()
Dim cell As Range
Set rng = Sheets("Sheet1").Range("L2:L1981")
Set rng1 = Sheets("Sheet1").Range("N2:N1981")
With Sheets("Sheet2")
For Each cell In Range("B2:B51")
cell.Value = Application.SumProduct((rng = cell.Offset(0, -1)) *
(rng1 0))
Next cell
End With
End Sub
Sheet1 - column L contains names and column N contains dates.
Sheet2 - column A2:A50 are names from column L on Sheet1.
I get a Type Mismatch error and haven't been able to fix it. Thanks in
advance for any help/suggestions.
Gareth
Reply With Quote
Tushar Mehta
View Public Profile
Find all posts by Tushar Mehta