Hi friends,
is it possible to add formula after index match in vba , in normal index match its working but not with vba.
vba code
Normal index match
i want to add last part of normal index match (*G10-H10*G10)
Thanks
is it possible to add formula after index match in vba , in normal index match its working but not with vba.
vba code
Code:
Sub lookup() lastrow = Cells(Rows.Count, "e").End(xlUp).Row
For i = 2 To lastrow
Range("e" & i) = Range("b" & Application.Match(Cells(i, 4), Range("a2:a" & lastrow), 0) + 1)
Next
End Sub
Normal index match
Code:
=INDEX(B10:B12,MATCH(D10,A10:A12,0))*G10-H10*G10
i want to add last part of normal index match (*G10-H10*G10)
Thanks