Rank If Passed
Sub Marks_rank()Dim i As IntegerDim k As StringFor i = 2 To Sheet1.Range("B1048576").End(xlUp).Rowk = Application.WorksheetFunction.Rank(Cells(i, "B"), Range("B:B"), 0)If Cells(i, "C") <> "Failed" ThenCells(i, "D") = kEnd IfNextEnd Sub
No comments:
Post a Comment