Using Date within a Pivot Table Calculated Field ?

klong

New Member
Joined
Oct 23, 2005
Messages
44
Hi,

I'm struggling to get a Calculated Field in a Pivot Table to do what I expect.

I wanted the Raw Data below in a pivot table where I would show OPEN and RECEIVED Qty columns. The blank Receipt Date puts 500 in the OPEN Qty column. Note data row 4 and 5 are the same item therefore pivot should have 100 in RECEIVED and 500 in OPEN column

MPN ---- Qty ---- Due Date ---- Receipt Date

GJM1555C1H5R0CB01D ---- 100 ---- 07/06/2019 ---- 06/06/2019
GRM155R70J105KA12J ---- 500 ---- 04/06/2019 ---- 04/06/2019
GRM219R60J476ME44D ---- 160 ---- 07/06/2019 ---- 06/06/2019
GRT31CR61H106ME01L ---- 100 ---- 04/06/2019 ---- 04/06/2019
GRT31CR61H106ME01L ---- 500 ---- 12/06/2019
ILA.02 ---- 30 ---- 31/05/2019 ---- 31/05/2019
IRF9328TRPBF ---- 30 ---- 31/05/2019 ---- 31/05/2019

In the Calculated Fields in the Pivot Table I used "=IF(ISBLANK('Receipt Date' ),0,Qty )" for RECEIVED and =IF(ISBLANK('Receipt Date' ),Qty,0) in OPEN. The result just gives all 600 in RECEIVED and 0 in OPEN.

Am I doing something silly that I can't spot ?

Regards,
Ken
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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