Help with formula

MikeSea45

New Member
Joined
Jun 17, 2014
Messages
39
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
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Thanks, I've just spotted that when the formula is entered it is looking in the same row (3) for the match value. Is there a way in which the lookup row looks at the current row for the match?
 
Upvote 0
I don't understand. Which part of the formula do you want to change? The row in RC2 and RC8 will adjust relatively for each row.
 
Upvote 0

Forum statistics

Threads
1,203,236
Messages
6,054,298
Members
444,715
Latest member
GlitchHawk

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top