I'm having a hard time trying to get my formula into VBA
This is the formula:
=INDEX('Raw G'!1:1048576,MATCH(N5,INDIRECT("'Raw G'!" & ToColletter(MATCH(F4,'Raw G'!2:2,0))&":"&ToColletter(MATCH(F4,'Raw G'!2:2,0))),0),MATCH("Grand Total*",'Raw G'!3:3,0)+1)
I need it to apply on every cell down row L with the following set of criteria:
Sub csku()
With Application
Set SrchRng = .Range(.Cells(4, "N"), .Cells(Rows.Count, "N").End(xlUp))
For Each cel In SrchRng
If cel.Value2 > 0 Then
cel.Offset(0, -2).Value =
End With
End Sub
However, I'm not too sure how I can go about doing this, as it contains multiple formulas in formulas.
In addition, I use an application to convert number to column letter:
Public Function ToColletter(Collet)
ToColletter = Split(Cells(1, Collet).Address, "$")(1)
End Function
Much help is appreciated.