Please describe exactly what you mean by the above? and what cell are you putting the original formula in?last active cell in the column
Sub CopyFormulaDown()
Dim LastRow As Long
LastRow = Cells(Rows.Count, "D").End(xlUp).Row
Range("a2").AutoFill Destination:=Range("a2:a" & LastRow)
'Convert cell range to percentage format
Range("A2:A" & LastRow).Style = "Percent"
End Sub
Hi Mark! The formula will go in Column E and copy down to the last active cell in the column. The formula is C2/D2 = Percentage in Column E.Please describe exactly what you mean by the above? and what cell are you putting the original formula in?
Can you also post the actual formula you are putting in the cell
=C2/D2
Assuming the above is what you actually mean and using Column C to determine the last row as you should have data in that column try the code below...Do you mean for the formula
=C2/D2
then format the cells as a percentage?
Sub cr2289A()
With Range("E2:E" & Range("C" & Rows.Count).End(xlUp).Row)
.Formula = "=C2/D2"
.NumberFormat = "0.00%"
End With
End Sub