Solved

Convert Pivot Table Data

Posted on 2015-02-11
2
93 Views
Last Modified: 2015-02-11
I have a worksheet that contains the columns: Person ID code, Name, Location. Each person has at least one location, but many have multiple locations. People with multiple locations have their ID code & name duplicated in subsequent rows, The different location is then stored. For example:

ID Code Name         Location
12345    Bloggs, Joe London
12345    Bloggs, Joe Manchester
67890    Smith, Jim  Manchester
67890    Smith, Jim  Southampton

What I want to do is convert the layout so it is :

ID Code Name           Location1      Location2            Location3
12345    Bloggs, Joe   London          Manchester
67890    Smith, Jim    Manchester   Southampton

I have created a pivot table which has grouped the people with their locations easily enough. But what I cannot figure out next is how to export the pivot table so that each element in the pivot table report occupies one row in a new worksheet.
0
Comment
Question by:Paul Gardner
2 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40603023
You can't - directly. You can do it in SQL Server PIVOT, but not in Excel. It's for counting/summing/averaging numbers, not text.

Therefore, you need to do a lookup - see the attached.
EE150211.xlsx
0
 

Author Closing Comment

by:Paul Gardner
ID: 40603344
Thank for your reply, that has worked perfectly. It took a while to step through the various formulas to realise how it all works. But I think I understand it now, so the challenge will be able to recreate it next time I have a similar requirement.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article I will provide some simple productivity hacks that will help you use Google to specifically show results from any web site (Experts-Exchange.com in my example), with minimal effort in Chrome and Firefox. I've seen a common theme a…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now