Convert Number to Time (decimal)

rajcobra

New Member
Joined
Nov 8, 2012
Messages
14
Dear Friends,

I have attendance machine providing working hours in decimal for my employees. But issue comes when I want to add the attendance from two separate machines for same employee in excel.

For Example:

Employee 1
1st Machine - 25.45 (25 hrs 45 mins)
2nd Machine - 1.50 (1 Hr 55 mins)

Total - 26.95
But we need result as - 27.35

How to get this? Request your help...
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
With this sample data in A1:A3 (I'm assuming you meant the 1.50 to mean 1Hr and 50 Mins)
Code:
Mach Hrs
   25.45
    1.50
This regular formula returns the total time formatted as H.MM
Code:
A4: =--TEXT(SUMPRODUCT(INT(A2:A3)*60+MOD(A2:A3,1)*100)/1440,"[h].MM")
In that example these are the results:
Code:
Mach Hrs
   25.45
    1.50
   27.35
Is that something you can work with?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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