Having number of rows known you can try thisYou have final row number "r", you can use for loop to fill the formula inrangelikefor each cell in range ("C1: C"&r)c = "your formula" here.activecell.offset(1,0).selectnext