Converting decimals to minutes

markman235

Board Regular
Joined
May 10, 2011
Messages
52
Hi everyone,

I track employee time as a cumulative number, so at the end of the week, they could end up with 40.25 hours for 40 hours and 25 minutes.

Is there a formula to get this to convert the .25 to minutes without messing up the 40?

Thanks in advance!

Mark
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I actually found a solution to this using =SUM((K103-LEFT(K103,2))/1.666)+LEFT(K103,3). This assumes that the 40.25 is in cell K103.

Hope this helps anyone else out!

Thanks,

Mark
 
Upvote 0
If the employee works 40.25 hours, why is that not 40 hours and 15 minutes?
 
Upvote 0
I actually found a solution to this using =SUM((K103-LEFT(K103,2))/1.666)+LEFT(K103,3). This assumes that the 40.25 is in cell K103.

Hope this helps anyone else out!

Thanks,

Mark

Hi,

The formula you have is going to be a hit and miss depending on your data, check my samples below comparing what you have (Column C) and what I suggest (Column D):

Cell Formulas
RangeFormula
C3=SUM((A3-LEFT(A3,2))/1.666)+LEFT(A3,3)
C5=SUM((A5-LEFT(A5,2))/1.666)+LEFT(A5,3)
C1=SUM((A1-LEFT(A1,2))/1.666)+LEFT(A1,3)
D1=(INT(A1)&"."&(MOD(A1,1)*60))*1
D2=INT(A2)&" Hours "&(MOD(A2,1)*60)&" Minutes"
D3=(INT(A3)&"."&(MOD(A3,1)*60))*1
D4=INT(A4)&" Hours "&(MOD(A4,1)*60)&" Minutes"
D5=(INT(A5)&"."&(MOD(A5,1)*60))*1
D6=INT(A6)&" Hours "&(MOD(A6,1)*60)&" Minutes"
 
Last edited:
Upvote 0
@ jtakw:

Just to mention: your formula stumbles on, for example, 40.9 (because of the rounding issues).

Here is a shorter and more robust solution:

=DOLLARFR(A1,60)
 
Upvote 0
You're right Tetra, missed that.
 
Upvote 0

Forum statistics

Threads
1,223,704
Messages
6,173,984
Members
452,540
Latest member
haasro02

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top