Calculating the difference between two dates AND times

jeffhole

New Member
Joined
Nov 22, 2011
Messages
1
Hello,
I need some help with datediff and/or networkdays. Or something. I have several columns populated with both dates and times in this format -> mm/dd/yyyy hh:mm:ss

They look like this:

Column A
11/16/2011 13:19:07
11/14/2011 17:19:06

Column B
11/17/2011 07:19:56
11/18/2011 11:01:56


I need to figure out how to find the amount of time between the two columns. I searched and couldn't find exactly what I was looking for. The trouble I'm having is with incorporating the time along with the date. Excel formulas or VBA solutions will work, I'm not picky, just braindead :D I'm hoping the solution is an easy one that I overlooked.

Thank you very much.
 

Some videos you may like

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

roentgen

Board Regular
Joined
Apr 13, 2007
Messages
100
Hi

Just deduct the cells and use a custom format [hh]:mm to give total hours and minutes.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,387
Messages
5,595,879
Members
414,029
Latest member
mrwilker

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
Top