Multiply and convert minutes to hours

Panoos64

Well-known Member
Joined
Mar 1, 2014
Messages
882
Hi all, kindly require to provide me support so that to create a VBA code which should convert the minutes decimals in col. "L" to hours multiplying by 0.60. On my first below extract i appear the original data and on second i appear the expected result.

e.g. 01-Aug-2018 9.67 should be 9.40 (67*0.60=40.20). we get the first decimals (40) and should turn the number 9.67 to 9.40.

Thanks in advance

Original data

ABCDEFGL
1CODENameDateTIME ON DUTYTIME OFF DUTYINOUTW. HRS
21EMPLOYEE 101-Aug-1808:0017:007:3017:109.67
31EMPLOYEE 102-Aug-1808:0017:007:4516:308.75
41EMPLOYEE 103-Aug-1808:0017:008:1417:209.10
51EMPLOYEE 104-Aug-1808:0017:007:4516:148.48

<tbody>
</tbody>


Expected result

ABCDEFGL
1CODENameDateTIME ON DUTYTIME OFF DUTYINOUTW. HRS
21EMPLOYEE 101-Aug-1808:0017:007:3017:109.40
31EMPLOYEE 1 02-Aug-1808:0017:007:4516:308.45
41EMPLOYEE 103-Aug-1808:0017:008:1417:209.06
51EMPLOYEE 104-Aug-1808:0017:007:4516:148.29

<tbody>
</tbody>
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Thank you steve, i express my apologies that, i did not read the post 8 carefully. It appears the "Total Hours" correct now. Many thanks for your time spent for my project. Have a great day!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,962
Messages
6,122,482
Members
449,088
Latest member
Melvetica

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