I have seen examples of this issue out there, but i am having problems solving it when it comes to solving my own.
Please take a look at my code below, it is bugging in the array formula.
Please take a look at my code below, it is bugging in the array formula.
Code:
Dim TableNames As Worksheet
Dim ss As Worksheet
Dim ssclaim As Worksheet
Dim sspercent As Worksheet
Dim lrTableNames As Long
Set TableNames = b1.Sheets("TableNames")
Set ss = b1.Sheets("SS1617_TP164")
Set ssclaim = b1.Sheets("SSbyClaim1617_TP177")
Set ssprecent = b1.Sheets("SSpercentile1617_TP198")
lrTableNames = TableNames.Range("B" & Rows.Count).End(xlUp).Row
Dim Lastrow As Long
Lastrow = ss.Range("B" & Rows.Count).End(xlUp).Row
For Each iRow In ss.Range("L2:L" & Lastrow)
ss.Range("L" & iRow).FormulaArray = _
"=INDEX(TableNames!$J$2:$J" & lrTableNames & ",MATCH(1,(TableNames!$D$2:$D" & lrTableNames & "=$C" & iRow & ")*(TableNames!$E$2:$E" & lrTableNames & "=$B" & iRow & ")*(TableNames!$A$2:$A" & lrTableNames & "=""Average Overall Scale Score""),0))"
Next iRow