I have the following formula I copied from using the macro recorder. The issue is that it seems to remain an absolute value instead of relative. Where RC[-5] should be D2 and then the next cell D3, D4... etc. When I substitute the R[-5] for D2 the formula doesn't work.
Is this because its an array formula?
Is this because its an array formula?
VBA Code:
For Each cell In RNG
range(Cells(2, 9), Cells(LastRow, 9)).FormulaArray = _
"=INDEX('[filename.xlsx]sheetname'!C2,MATCH(""3730""&RC[-5],'[filename.xlsx]sheetname'!C1&'[filename.xlsx]sheetname'!C5,0))"
Next cell
End Sub