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.


SignIn To ChkInC/I Time
4.310:01 AM
3.610:02 AM
15.610:02 AM
4.410:03 AM

<colgroup><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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
Thank you so much!!! I would have never figured that out and your explanation was perfect!! Thanks again!

Susan
 
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,215,695
Messages
6,126,263
Members
449,307
Latest member
Andile

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