Pivot Table Dates

tstri

New Member
Joined
Aug 8, 2019
Messages
3
I have a dataset that contains a list of items with a unique id, create date, and close date. How do I get a pivot table to have dates by day in the left most column, a count of records created in that day in the second column, a count of records closed in the third column, and the difference in the third.

Date. Created. Closed. Diff
1/1/2019. 150. 100. 50
1/2/2019. 100. 150. -50
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Your sample data (really need to see more data in your sample example) does not represent your explanation. I am confused as you have fields in your explanation that are not shown in your example.
 
Upvote 0
Your sample data (really need to see more data in your sample example) does not represent your explanation. I am confused as you have fields in your explanation that are not shown in your example.


My apologies:

My data:

Id. Created. Closed
1. 1/1/2019. 1/3/2019
2. 1/1/2019. 1/3/2019
3. 1/1/2019. 1/1/2019
4. 1/2/2019. 1/2/2019
5. 1/2/2019. 1/5/2019
6. 1/3/2019. 1/3/2019
7. 1/3/2019. 1/5/2019
8. 1/3/2019. 1/5/2019
9. 1/3/2019. 1/5/2019
10. 1/3/2019. 1/5/2019

Desired Result:

Date. Created. Closed. Diff
1/1/2019. 3. 1. 2
1/2/2019. 2. 1. 1
1/3/2019. 5. 3. 2
1/5/2019. 0. 5. -5
 
Upvote 0
Inserting the data into a Pivot Table gets the following results. Then using simple excel subtract one value from the other for a difference

Data Range
A
B
C
D
E
F
G
H
1
Id​
Created​
Closed​
2
1​
1/1/2019​
1/3/2019​
Created​
Closed​
Count of Created​
Count of Closed​
3
2​
1/1/2019​
1/3/2019​
1/1/2019​
4
3​
1/1/2019​
1/1/2019​
1/1/2019​
1​
1​
5
4​
1/2/2019​
1/2/2019​
1/3/2019​
2​
2​
6
5​
1/2/2019​
1/5/2019​
1/2/2019​
7
6​
1/3/2019​
1/3/2019​
1/2/2019​
1​
1​
8
7​
1/3/2019​
1/5/2019​
1/5/2019​
1​
1​
9
8​
1/3/2019​
1/5/2019​
1/3/2019​
10
9​
1/3/2019​
1/5/2019​
1/3/2019​
1​
1​
11
10​
1/3/2019​
1/5/2019​
1/5/2019​
4​
4​
12
 
Upvote 0

Forum statistics

Threads
1,214,851
Messages
6,121,931
Members
449,056
Latest member
denissimo

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