I'm trying to skip one column in my array.
Below where I have "Skip" is the column I want to skip. It would be the 7th column or B11.
Below where I have "Skip" is the column I want to skip. It would be the 7th column or B11.
VBA Code:
var = Array("ABE", "ACE", "ILT", "IND", "TOP", "TOP2", Skip, "ADD")
Set rng = Range("B4")
For i = 0 To UBound(var)
rng.Offset(0, i + 1) = "=IFERROR(ROUNDDOWN(COUNTIFS(SUBAREA,RIGHT(A4,3),DEPT," & MYDEPT & "," & var(i) & ",""Y"")/COUNTIFS(SUBAREA,RIGHT(A4,3),DEPT," & MYDEPT & "," & var(i) & ",""<>N/A""),2),""N/A"")"
Next i