Hi,
We are adding some formula manualy but now we have large data around 1200 and want help to do it with vba or code
We are putting the Text Max in N2 and formula in O2:Q2 (All formula are different)
and after that We are putting the Text Min in N3 and formula O3:Q3 (All formula are different)
All the above work we are doing in N8, N14 and all other.
Get the below Code from westconn1
want to add some more formula in next column
In Column P2 =Roundup(O2)
In Column P3 =ROUNDDOWN(O3)
In Column Q2 =P2+0.40
In Column Q3 =P3+0.40
We are adding some formula manualy but now we have large data around 1200 and want help to do it with vba or code
We are putting the Text Max in N2 and formula in O2:Q2 (All formula are different)
and after that We are putting the Text Min in N3 and formula O3:Q3 (All formula are different)
All the above work we are doing in N8, N14 and all other.
Get the below Code from westconn1
HTML Code:
lr = Cells(Rows.Count, 1).End(xlUp).Row
For rw = 2 To lr Step 6
With Cells(rw, 14)
.Value = "Max"
.Offset(1) = "Min"
.Offset(, 1).Formula = "=Max(F" & rw & ":F" & rw + 4 & ")"
.Offset(1, 1).Formula = "=Min(F" & rw & ":F" & rw + 4 & ")"
End With
Next
In Column P2 =Roundup(O2)
In Column P3 =ROUNDDOWN(O3)
In Column Q2 =P2+0.40
In Column Q3 =P3+0.40