Pivot tables: Calculating Duration from Min and Max date columns

FBoyer

New Member
Joined
Oct 30, 2017
Messages
1
Hello, I have a pivot table that pulls data from time card records for projects. Each project has several time card entries and I want to find the duration of a project based on the first time card entry (earliest date) and the last time card entry (last date) for each project. I have a pivot table set up and used Min and Max values to ID the earliest and last date for each project. I tried to create a "calculated field" but can't seem to find the right formula because the return value is ZERO instead of the correct duration. Can someone help?

Thank you!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi,

By doing this Excel kinda treats it like a seperate column and tries to calculate Date-Data which will always be 0.

This can however easily be fixed by using Power Pivot, and creating a couple of measures. Do you have Power pivot?
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,714
Members
452,995
Latest member
isldboy

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