Sub TEST()
'Find the last used row in column C. We use this row number to limit the size of our array formula
LR = Cells(Rows.Count, 3).End(xlUp).Row
'Enter an array formula in D1 to find the last cell with text in Column C
'The Formula creates an array listing the row number of each cell with text. The max returns the row number of the last cell
Range("D1").FormulaArray = "=MAX(IF(LEN(R1C3:R" & LR & "C3)>0,ROW(R1C3:R" & LR & "C3),0))"
'Copy Paste Valuezs
Cells([D1], 3) = Cells([D1], 3)
'Clear D1
[D1] = ""
End Sub
Bookmarks