Hi,
can some one help me to make SUMPRODUCT formula with dynamic range, as below.
Actual formula
Required like this
Thanks
can some one help me to make SUMPRODUCT formula with dynamic range, as below.
Actual formula
Code:
With Range("c2:c" & LastRow) .Formula = "=SUMPRODUCT(--(MONTH(sales!$B$2:$B$300)=$A2),sales!$K$2:$K$300)"
.Value2 = .Value2
End With
Code:
With Range("c2:c" & LastRow) .Formula = "=SUMPRODUCT(--(month(sales![COLOR=#ff0000][B]b2:b[/B][/COLOR] & lastrow =$A2),(sales![B][COLOR=#ff0000]k2:k[/COLOR][/B] & LastRow )"
End With
Thanks