Calculating Difference in times and dates

jeff07kp

New Member
Joined
Jun 17, 2008
Messages
30
Hopefully someone can help me,

I have
Coumn A Column B Column C Column d
7/15/08 13:00 7/20/08 23:00

I need to calculate the difference time including dates,
does anyone know how to calculate this???
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hopefully someone can help me,

I have
Coumn A Column B Column C Column d
7/15/08 13:00 7/20/08 23:00

I need to calculate the difference time including dates,
does anyone know how to calculate this???


I'm not sure about the time calculation, but here is a formula that will calculate the amount of days between two dates: =datedif(a1,a3,d)

I found this forumula at this website: http://www.theexceladdict.com/_t/t040303.htm

You can check out this page and it will explain the formula and tells you how to calculate for years, months, days, etc. Unfortunately, it doesn't mention anything about calculating times.

I just googled "finding the difference between two times in excel" and found this website: http://office.microsoft.com/en-us/excel/HP030561081033.aspx

This may help you with the time part. I hope this helps you out. Good luck!
 
Upvote 0
For example I would like to calculate in cell E
total hours between the two periods (7/20/08 -07/15/08)+ (23:00-13:00) = 5days and 10 hours = 130 hours

Although this seems as a simple calculation what if my final time in column d is less than the time in Column B, then this equation wouldn't work. How can I get this total time??
 
Upvote 0
Use the formula xld gave you first, you don't subtract the dates and then add the subtracted times, you add the date to each time and subtract those. Format as [h]:mm


Excel Workbook
ABCDEF
27/15/200813:007/20/200823:00130:00
Sheet1
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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