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.

12:00am
5:35am
#VALUE!
10:05am
10:10am
#VALUE!
10:00am
10:05am
#VALUE!

<tbody>
</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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