P
Patrick Molloy
You can enter the formula without using the FillDown
method...
example
FirstRow = 20
LastRow = 70
WhichCol = "K"
myformula ="=IF(ISERROR(VLOOKUP(C[1],Sheet1!RC"[-1]: _
R[155]C,2,0),"",VLOOKUP(C[1], _
Sheet1!RC[-1]:R[155]C,2,0))"
With Range(Cells(Firstrow,WhichCol), _
Cells(Lastrow,WhichCol))
.Formular1C1 = myformula
End With
Patrick Molloy
Microsoft Excel MVP
method...
example
FirstRow = 20
LastRow = 70
WhichCol = "K"
myformula ="=IF(ISERROR(VLOOKUP(C[1],Sheet1!RC"[-1]: _
R[155]C,2,0),"",VLOOKUP(C[1], _
Sheet1!RC[-1]:R[155]C,2,0))"
With Range(Cells(Firstrow,WhichCol), _
Cells(Lastrow,WhichCol))
.Formular1C1 = myformula
End With
Patrick Molloy
Microsoft Excel MVP