O
olssonj
Hi all, I am new to macros and VBA. Have a question concerning SumProduct.
I have a worksheet with 20 something active columns. In a for-loop I want to
ad dates from column G that depends on values from two other columns B and F.
I am trying to use SumProduct in VBA. See description and my code below:
Column B ColumnF ColumnG
Customer1 ProcessActivitity1 Date
Customer2 ... ...
....
MyDateList(x) = Application.WorksheetFunction. _
SumProduct(--([B:B] = Customer), --([F:F] = MyProcessList(x)),
--([G:G]))
Error message: "Incompatible types" (Hope the spelling is right
)
Thank you in advance! I am sure its a simple misstake I'v made, beginner and
all...
Take care!
//Jonas
I have a worksheet with 20 something active columns. In a for-loop I want to
ad dates from column G that depends on values from two other columns B and F.
I am trying to use SumProduct in VBA. See description and my code below:
Column B ColumnF ColumnG
Customer1 ProcessActivitity1 Date
Customer2 ... ...
....
MyDateList(x) = Application.WorksheetFunction. _
SumProduct(--([B:B] = Customer), --([F:F] = MyProcessList(x)),
--([G:G]))
Error message: "Incompatible types" (Hope the spelling is right

Thank you in advance! I am sure its a simple misstake I'v made, beginner and
all...
Take care!
//Jonas