Sub MyReplaceNum()
Dim lr As Long
Dim r As Long
Application.ScreenUpdating = False
' Find last row in column C with data
lr = Cells(Rows.Count, "C").End(xlUp).Row
' Loop through all values in column C starting on row 1
For r = 2 To lr
' Check to see if number in column C
If IsNumeric(Cells(r, "C")) Then
' Replace value in column C
Cells(r, "C").Value = Round(Cells(r, "C").Value / 60, 0)
End If
Next r
Application.ScreenUpdating = True
End Sub
Sub MyReplaceNum()
Dim lr As Long
Dim r As Long
Dim v As Double
Application.ScreenUpdating = False
' Find last row in column C with data
lr = Cells(Rows.Count, "C").End(xlUp).Row
' Loop through all values in column C starting on row 1
For r = 2 To lr
' Check to see if number in column C
If IsNumeric(Cells(r, "C")) Then
v = Cells(r, "C").Value
' Replace value in column C
Cells(r, "C").Value = Application.WorksheetFunction.RoundUp(v / 60, 0)
End If
Next r
Application.ScreenUpdating = True
End Sub