subtracting 1 time from another.

aburkho

New Member
Joined
Sep 8, 2015
Messages
2
Hey Guys,


I am having trouble subtracting one time from another in Excel in order to get the difference of time. How do i subtract 12:00:00 AM from 5:35 AM to get an answer of 5:35 in the first example? I tried to just do (=e3-d3), but it came up "#Value"

Would love to figure this one out.

[TABLE="width: 144"]
<tbody>[TR]
[TD="class: xl67, width: 64, bgcolor: transparent"]12:00am
[/TD]
[TD="class: xl67, width: 64, bgcolor: transparent"]5:35am
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent, align: center"]#VALUE!
[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"][/TD]
[TD="class: xl67, bgcolor: transparent"][/TD]
[TD="class: xl65, bgcolor: transparent, align: center"][/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]10:05am
[/TD]
[TD="class: xl67, bgcolor: transparent"]10:10am
[/TD]
[TD="class: xl65, bgcolor: transparent, align: center"]#VALUE!
[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]10:00am
[/TD]
[TD="class: xl67, bgcolor: transparent"]10:05am
[/TD]
[TD="class: xl65, bgcolor: transparent, align: center"]#VALUE!
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
You must enter your times like this:
8:00 AM or
3:00 PM
Note the space
Assuming your using U.S time formats.

Or if you like you can enter your times like this:

3:00 Which is 3 AM
Or:
17:00 Which is 5 PM
 
Last edited:
Upvote 0
Hi :0)

Lets call first time 12:00am cell A1 and you want to subtract cell B1 "5:35".
Get rid of the am/pm format and enter it as a 24 hour clock

Formula for this is =(b1+IF(a1>b1,1,0)-A1)*24) That should do it if you want how many hours are inbetween. if you want it to an actual time you will have to format the cells as time an date and enter the date manually.

Regards
Lewis Barton
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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