Converting Minutes to Hours

IanT

Registered User.
Local time
Today, 21:18
Joined
Nov 30, 2001
Messages
191
I want to convert minutes to hours. I have tried minutes / 60 but this shows incorrect minutes i.e.
165 min = 2hr75min

Does anyone no how to do this so the 75 is 45 min.

Thanks in advance
 
Or you can get the string "2 hr 45 min" with this:

Int(165/60) & " hr " & 165 Mod 60 & " min"


where 165 Mod 60 gives you the remainder of 165/60
 
Last edited:

Users who are viewing this thread

Back
Top Bottom