Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make decimal number into time

Status
Not open for further replies.

mguidry5

Technical User
Jan 11, 2005
91
US
Howdy,

How can I make this number (2.97, which represents just under 3 days) into a time value in the format of h:nn:ss?

TIA

MJG
 
multiply the first digit(s) by 24.
2 * 24 = 48
Multiply the decimal by 60.
.97 * 60 = 58.2
Multiply the result decimal by 60
.2*60=12
concantate...48 hrs 58 min 12 sec
jim
 
Thanks, xaf294. I figured it out after a little more looking and scavenging on the web. I'm a little s l o w when it comes to vba.

Thanks again for the response,

MJG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top