Solved

Convert Pivot Table Data

Posted on 2015-02-11
2
90 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.

746 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

13 Experts available now in Live!

Get 1:1 Help Now