Subtracting Decimal Time (4.3 minutes) from time value 10:00 am

susanlbaker

New Member
Joined
Oct 14, 2015
Messages
2
I have the following values that are exported out of Epic EMR (electronic medical record).

The first column is a decimal time value, for example the first example is 4.3 minutes.
I want to subtract the 4.3 minutes from the time stamp of 10:01 am in the second column.

I realize I could manually do this, but there are 134,000 records in this file.

Any help would be greatly appreciated.


[TABLE="width: 183"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]SignIn To ChkIn[/TD]
[TD]C/I Time[/TD]
[/TR]
[TR]
[TD="align: right"]4.3[/TD]
[TD="align: right"]10:01 AM[/TD]
[/TR]
[TR]
[TD="align: right"]3.6[/TD]
[TD="align: right"]10:02 AM[/TD]
[/TR]
[TR]
[TD="align: right"]15.6[/TD]
[TD="align: right"]10:02 AM[/TD]
[/TR]
[TR]
[TD="align: right"]4.4[/TD]
[TD="align: right"]10:03 AM[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi Susan,

Excel stores time in decimal form but displays it as time format. 1 day thereby equals 1.0

So 1 hour is1/24 = 0.04 and 1 minute is 0.04/60.

So all you need to do is to write a formula like this:

Code:
=H1-(G1*0.04/60)

With H1 being the start time and G1 being the adjustment in minutes. The output might be shown as a decimal figure. Just format it as "time", and you get the desired result.

Cheers,

Nils
 
Upvote 0
So 1 hour is 1/24 = 0.04 and 1 minute is 0.04/60. So all you need to do is to write a formula like this:
Code:
=H1-(G1*0.04/60)

1/24 is not exactly 0.04. So I would not use that approximation. Instead, I would simply write:
Code:
=H1 - G1/1440

where H1 is an Excel date and/or time, and G1 is time in decimal minutes.

This works because there are 1440 minutes in a day, and Excel stores time as a fraction of a day.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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