I'm trying to use an array formula as shown below, but it does not work. I think it's something to do with " .FormulaR1C1.Array" part of it, can anyone advise what I've done wrong?
With Range("AA3:AA" & LastRow)
.FormulaR1C1.Array = "=SUMPRODUCT(--(Weeks!R3C1:R260000C1=RC2),--(Weeks!R3C4:R260000C4=RC8),Weeks!R3C5:R260000C5)"
.Value = .Value
End With
With Range("AA3:AA" & LastRow)
.FormulaR1C1.Array = "=SUMPRODUCT(--(Weeks!R3C1:R260000C1=RC2),--(Weeks!R3C4:R260000C4=RC8),Weeks!R3C5:R260000C5)"
.Value = .Value
End With