Putting similiar records from different table underneath each other in a pivot table

asmith5rgv

Board Regular
Joined
Apr 6, 2006
Messages
69
Good morning all. I have 2 tables in XL. One table has prior year information and the other year has current year info. Both table have the following simple structure:

Month / Major Descr / Units

My pivot table has the months as rows and the item code as column.

I want my data to look like this:

ITEM CODE / MONTH 1 / MONTH 2/ MONTH 3/ MONTH 4 / ETC ETC
Current Year abc123 10 20 30 10 15
Prior Year abc123 5 15 25 10 13
Current Year xyz321 10 20 30 10 15
Prior Year xyz321 5 15 25 10 13

In other words, put the data from the prior year table underneath the Current Year data grouping by Item code

I created a relationship but when I put the units fields from both tables in the Values pivot box it puts the current and previous amounts side by side as a column, not underneath each other.

I dont know how well I have explained this but any help would be appreciated.

Alan
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

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