Pivot table calc display

Sharksfan

New Member
Joined
Nov 3, 2017
Messages
22
I have a data sheet with several columns; Date, part number, quantity, inventory status code.. I want to pivot this with part number as rows and dates as columns and 2 calculated fields showing inventory class, inventory one above the other in the same column (separate rows) under the respective dates. When I create a pivot table I can only get the calculated field to show side by side in two separate columns side by side (same row). Advice?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I am not sure what you mean. You say your data has inventory status code, and then you reference an inventory class. Are those the same things? see my example below.

Book1
ABCDEFGHIJKLMNOPQRST
1DatepartQuantityInventory Status CodeSum of QuantityColumn Labels
29/7/202312341212Homer J Simpson9/7/20239/7/2023 Total9/9/20239/9/2023 Total9/11/20239/11/2023 Total9/13/20239/13/2023 Total(blank)(blank) TotalGrand Total
39/7/202312351213batman symbolRow Labelsbatman symbolHomer J Simpsonfiveoctopus#blessed%^%&^fiveteen(blank)
49/9/202312361214five1234121212121212
59/9/202312371215octopus1235121312131213
69/11/202312381216#blessed1236121412141214
79/11/202312391217%^%&^1237121512151215
89/13/202312401218fiveteen1238121612161216
91239121712171217
101240121812181218
11(blank)
12Grand Total121312122425121412152429121612172433121812188505
Sheet1
 
Upvote 0
Not quite what I am looking for. I have cobbled together a short list of data and ultimately what I would like it to look like. When I do a pivot it puts the inventory class and the quantity side by side in columns. I would like that data one above the other in rows. This way, reading left to right, I can easily see changes in inventory class, quantity and the date the change occurred.
Screenshot 2023-09-08 083332.png
 
Upvote 0
Without using VBA, the closest I can get to your desired result using a pivot table is this.

fdgfgdf.xlsm
ABCDEFGHIJKLMNOPQ
1LocationpartQuantityInventory classDATESum of QuantityColumn Labels
2L010000010301333O7/14/2023Row Labelspart7/14/20237/21/20237/28/20238/4/20238/11/20238/18/20238/25/2023(blank)Grand Total
3L010000010301333O7/21/2023L01333333333711070
4L010000010301333O7/28/2023O0000010301333333333711070
5L01000001030171O8/4/2023O Total333333333711070
6L08000001035546S8/11/2023L08464646138
7L080000010355468/18/2023S0000010355464692
8L08000001035546S8/25/2023S Total464692
9(blank)00000103554646
10(blank) Total4646
11(blank)
12(blank)(blank)
13(blank) Total
14Grand Total333333333714646461208
Sheet1


this is the setting I used;

1694187006071.png


then you have to set the value field settings for both part and class, to this;
1694187081438.png
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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