OzGrid

How to format time format conversion from decimal numbers

< Back to Search results

 Category: [Excel]  Demo Available 

How to format time format conversion from decimal numbers

 

Requirement:

 

In cell A1 the decimal amount is: 35.02

 

The user requires the decimal changed to seconds.

 

Solution:

 

=IF(ISERROR(FIND(".",A1,1)),A1 * 60,LEFT(A1,FIND(".",A1,1)-1) * 60 + MID(A1,FIND(".",A1,1)+1,3))

 

or

 

=INT(A1)*60+MOD(A1,1)*100

 

 

Obtained from the OzGrid Help Forum.

Solution provided by rabsoftly and NBVC.

 

See also: Index to Excel VBA Code and Index to Excel Freebies and Lesson 1 - Excel Fundamentals and Index to how to… providing a range of solutions and Index to new resources and reference sheets

 

See also:

How to calculate productivity in time basis
How to average time between dates
How to average time between dates
How to count times between 2 specified times

 

Click here to visit our Free 24/7 Excel/VBA Help Forum where there are thousands of posts you can get information from, or you can join the Forum and post your own questions.

 


Gallery