Convert to minutes and seconds
With C
.Value = (Range("A" & C.Row).Value * 60) _
/ (Cells(3, C.Column).Value / 60)
.Value = Round(C.Value, 2)
.Numberformat = "[mm]:ss.00"
End With
This assumes your equation puts a legitimate time value in the cell. If
not, make it so.
--
Regards,
Tom Ogilvy
"Stuart" wrote in message
...
Code (as follows) calculates, and places a value in a cell.
The value is in Minutes, and rounded to 2 decimal places:
With C
.Value = (Range("A" & C.Row).Value * 60) _
/ (Cells(3, C.Column).Value / 60)
.Value = Round(C.Value, 2)
End With
I cannot find a way to display the value in "mm:ss" format
....preferably also the seconds to 2 decimal places.
Is this possible, please?
Regards.
|