Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Try this : '--------------------------------------- Sub Formula() Dim LastRow As Long With Worksheets("Sheet1") 'Adapt sheet name lastrow = .Range("A:J").Find(What:="*", _ LookIn:=xlFormulas, _ SearchOrder:=xlByRows, _ SearchDirection:=xlPrevious).Row With .Range("K3:K" & lastrow) .Formula = "=SUMPRODUCT(" & .Parent.Name & _ "!A$1:J$1," & .Parent.Name & _ "!A3:J" & .Row & ")" .Value = .Value End With End With End Sub '--------------------------------------- "Colin Macleod" a écrit dans le message de groupe de discussion : ... I'd appreciate some help in using the sumproduct function. I have a set of numbers in cells a1 through to j1, then a table of numbers starting in cell a3 and going across and down to cell j100. In cell k3, I need to put the function =SUMPRODUCT(A$1:J$1,A3:J3) then copy this down the column. I'd like to put it into a for/next loop as the start and end row will vary. I'd also like column k to show values rather than contain formulas. Thanks for any help. Colin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using SUMPRODUCT Function on Calculated (Function-Derived) Data | Excel Programming | |||
Sumproduct with Condition OR Sumproduct with ADDRESS function - HE | Excel Discussion (Misc queries) | |||
sumproduct function / VB user defined function | Excel Discussion (Misc queries) | |||
SUMIF Function Inside SUMPRODUCT Function | Excel Worksheet Functions | |||
sumproduct function | Excel Worksheet Functions |