Sort and Pivot data into a grid w/ Non-stacked Multi Column in Row Field

AMHopkins

New Member
Joined
Dec 29, 2010
Messages
2
Need:Show Name, Address 1, Address 2, City, State, ZIP and ID in Row Field on a single row by name using Pivot Table. Data is dynamic and output must update after data is changed.

I have a data array composed of multiple columns for Project, Company, Percentage Owned, Partner Name, Address 1, Address 2, City, State, ZIP and ID. Within this array a single partner may be listed multiple times; once for each company he owns an interest in.

It was easy to create a pivot table to show the Partners in the Rows field, the Company in the Columns field and Percentage in the Data field.

Data Table
Excel Workbook
ABCDEFGHIJ
1ProjectCompany%NameAddress 1Add 2CitySTZipID
2P1Alpha Co.20John Smith0 Main StreetApt #1Small TownST98765123
3Beta Co.40John Smith0 Main StreetApt #1Small TownST98765123
4Omega Co.45John Smith0 Main StreetApt #1Small TownST98765123
5Gama Co.33John Smith0 Main StreetApt #1Small TownST98765123
6P2Kapa Co.10John Smith0 Main StreetApt #1Small TownST98765123
7P1Alpha Co.20Jane Doe1 SomewhereUSAZZ12345456
8Beta Co.40Jane Doe1 SomewhereUSAZZ12345456
9Gama Co.33Jane Doe1 SomewhereUSAZZ12345456
10Mu Co.40Jane Doe1 SomewhereUSAZZ12345456
11P1Alpha Co.50Bob Floater0 Feet Deep BlvdBig PondQQ14785789
12P2Gama Co.34Bob Floater0 Feet Deep BlvdBig PondQQ14785789
13Kapa Co.50Bob Floater0 Feet Deep BlvdBig PondQQ14785789
14Mu Co.30Bob Floater0 Feet Deep BlvdBig PondQQ14785789
15Omega Co.15Bob Floater0 Feet Deep BlvdBig PondQQ14785789
16P1Alpha Co.10Holly Jolly9 Deck HallNorth PoleNP15984963
17Beta Co.20Holly Jolly9 Deck HallNorth PoleNP15984963
18P2Kapa Co.40Holly Jolly9 Deck HallNorth PoleNP15984963
19Mu Co.30Holly Jolly9 Deck HallNorth PoleNP15984963
20Omega Co.40Holly Jolly9 Deck HallNorth PoleNP15984963
Data
Excel 2003/>

Desired Output:
Excel Workbook
ABCDEFGHIJKLM
1Project(All)
2
3Sum of %Company
4NameAddress 1Add 2CitySTZipIDAlpha Co.Beta Co.Gama Co.Kapa Co.Mu Co.Omega Co.
5Bob Floater0 Feet Deep Blvd-Big PondQQ147857895034503015
6Holly Jolly9 Deck Hall-North PoleNP159849631020403040
7Jane Doe1 Somewhere-USAZZ1234545620403340
8John Smith0 Main StreetApt #1Small TownST987651232040331045
9Grand Total100100100100100100
Sheet2
Excel 2003

Any suggestions of alternate solutions acceptable.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Solution:
Step 1) Create a "consolidation" column on the data page for the address. Write a formula to consolidate each part of the address into a single cell.

Step 2) Drag the new consolidation column to the row area of the pivot table, select Field settings for that field and select "None" under subtotals.

Step 3) Repeat Step 2 for the ID

This results in a single row showing: Column A, Name; Column B, Address; Column C, ID in the Row Fields of the table.

It will be at this point you will see any elements with multiple addresses or IDs.:)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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