ActiveCell.Formula = "=Counta(Selection.Offset(-1).end(xlUp) & "":"" & Selection.Offset(-1))" 'Top to bottom