Days and hours between 2 datetime fields in PowerPivot

TheCman81

Well-known Member
Joined
Feb 28, 2012
Messages
535
These dates are UK format dd/mm/yyyy

I've googled the $h!t out of this and can't find what I need.

I'm looking to create a calculated column that shows Days and hours between 2 datetime fields.

So for example I have Open Date and Closed Date:

Open: 12/11/2018 19:10:43 Closed: 12/11/2018 21:11:15 Result: 0 Days 2 Hours
Open: 01/11/2018 13:01:15 Closed: 09/11/2018 17:55:00 Result: 12 Days 4 Hours
Open: 05/11/2018 23:59:59 Closed: 06/11/2018 01:22:12 Result: 0 Days 1 Hours

Then the measure I will use in my pivot table would show the average days and hours in the same field (if this is possible), if it's not possible, then the days and hour part could be split into separate fields.

Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,215,125
Messages
6,123,193
Members
449,090
Latest member
bes000

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